[issue28466] SIGALRM fails to interrupt time.sleep() call on Python 3.5

Martin Panter report at bugs.python.org
Mon Oct 17 23:16:43 EDT 2016


Martin Panter added the comment:

This is by design; see PEP 475, and the documentation <https://docs.python.org/3.5/library/time.html#time.sleep>.

If you make your signal handler raise an exception, it will interrupt the sleep() call most of the time. But if the signal happens to be received just before the sleep() call is about to be entered, the handler will only be run when the underlying OS sleep() call returns 10 s later.

----------
nosy: +martin.panter
resolution:  -> not a bug
status: open -> closed

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


More information about the Python-bugs-list mailing list