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

Python Forked process exit without calling atexit functions

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jnquintin Jean-Noël Quintin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment