[issue18966] Threads within multiprocessing Process terminate early

Eryk Sun report at bugs.python.org
Wed Jul 13 16:30:59 EDT 2016


Eryk Sun added the comment:

In 3.4+ it works correctly with the "spawn" start method. This uses multiprocessing.spawn.spawn_main, which exits the child via sys.exit(exitcode). "fork" and "forkserver" exit the child via os._exit(code), respectively in multiprocessing.popen_fork.Popen._launch and multiprocessing.forkserver.main.

----------
nosy: +eryksun
versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18966>
_______________________________________


More information about the Python-bugs-list mailing list