Message294968
| Author |
Francis Bolduc |
| Recipients |
Francis Bolduc, brianboonstra, cvrebert, dan.oreilly, davin, jnoller, pitrou, sbt |
| Date |
2017年06月01日.20:53:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1496350419.74.0.199245544562.issue22393@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This problem also happens simply by calling sys.exit from one of the child processes.
The following script exhibits the problem:
import multiprocessing
import sys
def test(value):
if value:
sys.exit(123)
if __name__ == '__main__':
pool = multiprocessing.Pool(4)
cases = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]
pool.map(test, cases) |
|