Mercurial > cpython-lru_cache-weakref
diff Lib/multiprocessing/process.py @ 87209:44b5ec2f0f5d 3.3
Fix handling of SystemExit and exit code. Patch by Brodie Rao.
| author | Richard Oudkerk <shibturn@gmail.com> |
|---|---|
| date | Sun, 17 Nov 2013 17:24:11 +0000 |
| parents | 3585cb1388f2 |
| children | 9779267262d2 |
line wrap: on
line diff
--- a/Lib/multiprocessing/process.py Sun Nov 17 17:00:38 2013 +0000 +++ b/Lib/multiprocessing/process.py Sun Nov 17 17:24:11 2013 +0000 @@ -266,7 +266,7 @@ exitcode = e.args[0] else: sys.stderr.write(str(e.args[0]) + '\n') - exitcode = 0 if isinstance(e.args[0], str) else 1 + exitcode = 1 except: exitcode = 1 import traceback
