[issue30038] Race condition in how trip_signal writes to wakeup fd

Nathaniel Smith report at bugs.python.org
Tue Apr 11 07:00:58 EDT 2017


Nathaniel Smith added the comment:

If it helps, notice that the SetEvent(sigint_event) call used to wake up the main thread on windows is also performed unconditionally and after the call to Py_AddPendingEvent. From the point of view of twisted/tornado/trio, this is exactly the same as the write to the wakeup fd -- the only reason we use the wakeup fd instead of the sigint_event is that it's more convenient to wait on an fd than on an event object.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30038>
_______________________________________


More information about the Python-bugs-list mailing list