Message298875
Ok, after a bit of diagnosing, the issue is combining multi-threading with use of fork(). The problem is file objects (such as sys.stdout) have locks but those locks may be taken at the exact point where fork() happens, in which case the child will block when trying to take the lock again.
This is mostly a duplicate of issue 6721, but perhaps multiprocessing could at least improve things for sys.stdout and sys.stderr (though I'm not sure how).
This is also compounded by the fact that Process._bootstrap() flushed the standard streams at the end. |
|
Date |
User |
Action |
Args |
2017-07-22 21:52:54 | pitrou | set | recipients:
+ pitrou, davin, Hadhoke |
2017-07-22 21:52:54 | pitrou | set | messageid: <1500760374.84.0.795204285367.issue28382@psf.upfronthosting.co.za> |
2017-07-22 21:52:54 | pitrou | link | issue28382 messages |
2017-07-22 21:52:54 | pitrou | create | |
|