[issue35219] macOS 10.14 Mojave crashes in multiprocessing

Barry A. Warsaw report at bugs.python.org
Mon Nov 12 21:00:10 EST 2018


Barry A. Warsaw <barry at python.org> added the comment:

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

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35219>
_______________________________________


More information about the Python-bugs-list mailing list