Author vstinner
Recipients gvanrossum, martius, vstinner, yselivanov
Date 2015-02-04.22:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423088182.67.0.402624410789.issue21998@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-02-04 22:16:23vstinnersetrecipients: + vstinner, gvanrossum, yselivanov, martius
2015-02-04 22:16:22vstinnersetmessageid: <1423088182.67.0.402624410789.issue21998@psf.upfronthosting.co.za>
2015-02-04 22:16:22vstinnerlinkissue21998 messages
2015-02-04 22:16:22vstinnercreate