[issue35727] sys.exit() in a multiprocessing.Process does not align with Python behavior

Davin Potts report at bugs.python.org
Fri Sep 13 12:41:20 EDT 2019


Davin Potts <python at discontinuity.net> added the comment:

I believe the mentality behind multiprocessing.Process triggering an exit code of 1 when sys.exit() is invoked inside its process is to indicate a non-standard exit out of its execution.  There may yet be other side effects that could be triggered by having a sys.exit(0) translate into an exit code of 0 from the Process's process -- and we might not notice them with the current tests.

Was there a particular use case that motivates this suggested change?

----------

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


More information about the Python-bugs-list mailing list