This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry, ned.deily, pablogsal, ronaldoussoren
Date 2018-11-13.02:00:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542074410.17.0.788709270274.issue35219@psf.upfronthosting.co.za>
In-reply-to
Content
I'm still testing this solution, but it looks like if you set the environment variable, and then double fork, the granchild won't crash.  Roughly:

os.putenv('OBJC_DISABLE_INITIALIZE_FORK_SAFETY', 'YES')
pid = os.fork()
if pid == 0:
    subpid = os.fork()
    if subpid == 0:
        # I'm in a safe grandchild
History
Date User Action Args
2018-11-13 02:00:10barrysetrecipients: + barry, ronaldoussoren, ned.deily, pablogsal
2018-11-13 02:00:10barrysetmessageid: <1542074410.17.0.788709270274.issue35219@psf.upfronthosting.co.za>
2018-11-13 02:00:10barrylinkissue35219 messages
2018-11-13 02:00:10barrycreate