[docs] [issue25482] signal.set_wakeup_fd() doesn't work if the signal don't have handler

STINNER Victor report at bugs.python.org
Thu Oct 29 23:14:07 EDT 2015

STINNER Victor added the comment:

It's very easy to get the same behaviour on Python 3.4 (without PEP 475) and Python 3.5 (with PEP 475). Just add the following code at the top of your example:
import signal

def sighandler(signum, frame):
    raise InterruptedError

signal.signal(signal.SIGWINCH, sighandler)

You can use any Python exception, not only InterruptedError.

PEP 475 only changes the behaviour on signals with an handler which doesn't raise an exception.


Python tracker <report at bugs.python.org>

More information about the docs mailing list