Author martin.panter
Recipients alanwilter, georg.brandl, martin.panter, neologix, nirai, pitrou
Date 2015-11-20.01:53:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447984384.58.0.341970449453.issue9504@psf.upfronthosting.co.za>
In-reply-to
Content
With Python’s current technique for signal handling, I think there is always going to be a window where a signal can arrive at the low level after checking the Python flag and before starting a blocking call. If you need to robustly handle a signal maybe it is better to use set_signal_fd() and select() or something.

I haven’t looked at the patch closely, but it sounds like it could reduce the size of the window. This would make interactive signals like SIGINT more reliable, so it may be worthwhile. It probably needs properly reviewing in light of the recent EINTR (PEP 457) changes though.
History
Date User Action Args
2015-11-20 01:53:04martin.pantersetrecipients: + martin.panter, georg.brandl, pitrou, nirai, neologix, alanwilter
2015-11-20 01:53:04martin.pantersetmessageid: <1447984384.58.0.341970449453.issue9504@psf.upfronthosting.co.za>
2015-11-20 01:53:04martin.panterlinkissue9504 messages
2015-11-20 01:53:03martin.pantercreate