Author martius
Recipients gvanrossum, martius, vstinner, yselivanov
Date 2014-11-28.16:51:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

Actually, closing and creating a new loop in the child doesn't work either, at least on Linux.

When, in the child, we call loop.close(), it performs:
(in, _close_self_pipe() around line 85)

Both the parent and the child still refer to the same underlying epoll structure, at that moment, and calling remove_reader() has an effect on the parent process too (which will never watch the self-pipe again).

I attached a test case that demonstrates the issue (and the workaround, commented).
Date User Action Args
2014-11-28 16:51:51martiussetrecipients: + martius, gvanrossum, vstinner, yselivanov
2014-11-28 16:51:51martiussetmessageid: <>
2014-11-28 16:51:51martiuslinkissue21998 messages
2014-11-28 16:51:50martiuscreate