commit | 3f8376eaa258e6d39f7e2466ca214c26967eaa66 | [log] [tgz] |
---|---|---|
author | Richard Oudkerk <shibturn@gmail.com> | Sun Nov 17 17:24:11 2013 +0000 |
committer | Richard Oudkerk <shibturn@gmail.com> | Sun Nov 17 17:24:11 2013 +0000 |
tree | 4db34757bee1668240ea360d110f290ecf626cbc | |
parent | a69712c01dfb9cfc60502b2420fe447b56487b38 [diff] [blame] |
Fix handling of SystemExit and exit code. Patch by Brodie Rao.
diff --git a/Lib/multiprocessing/process.py b/Lib/multiprocessing/process.py index 482ea0a..44c1e44 100644 --- a/Lib/multiprocessing/process.py +++ b/Lib/multiprocessing/process.py
@@ -267,7 +267,7 @@ else: sys.stderr.write(str(e.args[0]) + '\n') sys.stderr.flush() - exitcode = 0 if isinstance(e.args[0], str) else 1 + exitcode = 1 except: exitcode = 1 import traceback