bpo-30643: Fix race condition in signal wakeup in forkserver (followup to PR #1989) (#2139)
* Fix race condition in signal wakeup in forkserver (followup to PR #1989) There's an admittedly well-known race condition where ECHILD can arrive just before the C function epoll_wait() and the latter wouldn't therefore return EINTR. The solution is to use set_wakeup_fd(), which was designed to avoid such race conditions. * Reset wakeup fd in child
A
Antoine Pitrou committed
2b5cc5ebaff41445200753f1a69fd4e6a9475a1e
Parent: bd4e9e0
Committed by GitHub <noreply@github.com>
on 6/13/2017, 7:46:06 AM