Message 293791 - Python tracker
While I suggest you to *not* use an event loop (wakeup fd pipe/socket handle with select) and signal.signal(), you are true that there is a race condition if you use select() with signal.signal() so I merged your change. Do you consider that it's worth it to backport the change to 3.5 and 3.6? Python 2.7 is not affected, right?