Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4267

Python Forked process exit without calling atexit functions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Python - Library
    • Labels:
      None

      Description

      I am logging with an asynchronous library that required to call a flush function at exit to avoid loosing messages.
      Since in the library after a fork os._exit is called I have no way to call this function automatically.

      Is it possible to call sys.exit or the function register in atexit?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jnquintin Jean-Noël Quintin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: