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

Python Forked process exit without calling atexit functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Python - Library
    • 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

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

            Dates

              Created:
              Updated: