Message231919
Guido,
Currently in my program, I manually remove and then re-adds the reader to the loop in the parent process right after the fork(). I also considered a dirty monkey-patching of remove_reader() and remove_writer() which would act as the original versions but without removing the fds from the epoll object (ensuring I don't get bitten by the same behavior for an other fd).
The easiest fix, I think, is indeed to close the selector without unregistering the fds, but I don't know if doing so would have undesired side effects on an other platform than Linux (resources leak, or the close call failing maybe). |
|
Date |
User |
Action |
Args |
2014-12-01 09:23:06 | martius | set | recipients:
+ martius, gvanrossum, vstinner, yselivanov |
2014-12-01 09:23:06 | martius | set | messageid: <1417425786.04.0.0696534583373.issue21998@psf.upfronthosting.co.za> |
2014-12-01 09:23:06 | martius | link | issue21998 messages |
2014-12-01 09:23:05 | martius | create | |
|