Message278838
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. |
|
Date |
User |
Action |
Args |
2016-10-18 03:16:43 | martin.panter | set | recipients:
+ martin.panter, ryan.petrello |
2016-10-18 03:16:43 | martin.panter | set | messageid: <1476760603.81.0.902934975894.issue28466@psf.upfronthosting.co.za> |
2016-10-18 03:16:43 | martin.panter | link | issue28466 messages |
2016-10-18 03:16:43 | martin.panter | create | |
|