Message235409
Attached at_fork.patch: detect fork and handle fork.
* Add _at_fork() method to asyncio.BaseEventLoop
* Add _detect_fork() method to asyncio.BaseEventLoop
* Add _at_fork() method to selectors.BaseSelector
I tried to minimize the number of calls to _detect_fork(): only when the self-pipe or the selector is used.
I only tried test2.py. More tests using two processes running two event loops should be done, and non-regression tests should be written.
The issue #22087 (multiprocessing) looks like a duplicate of this issue. |
|
Date |
User |
Action |
Args |
2015-02-04 22:16:23 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov, martius |
2015-02-04 22:16:22 | vstinner | set | messageid: <1423088182.67.0.402624410789.issue21998@psf.upfronthosting.co.za> |
2015-02-04 22:16:22 | vstinner | link | issue21998 messages |
2015-02-04 22:16:22 | vstinner | create | |
|