➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 vstinner
日期 2015-03-20.09:03:25
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1426842205.89.0.170142960937.issue23715@psf.upfronthosting.co.za>
In-reply-to
内容
signal_eintr.py: More complete patch, modify also signal.sigwaitinfo().

--

I don't think that other signal functions need to be modified to handle EINTR.

POSIX manual pages:
- "The pthread_sigmask() function shall not return an error code of [EINTR]."
- "The pthread_kill() function shall not return an error code of [EINTR]."

pause() fails with EINTR when it receives a signal, but signal.pause() doesn't raise InterruptedError in this case, it only returns None, because we expect a signal.

I tested: signal.sigwait([]) doesn't fail with EINTR with a signal is received. No need to modify this function.

On Linux, signal.set_wakeup_fd() doesn't fail with InterruptedError.
历史
日期 用户 动作 参数
2015-03-20 09:03:25vstinner修改recipients: + vstinner
2015-03-20 09:03:25vstinner修改messageid: <1426842205.89.0.170142960937.issue23715@psf.upfronthosting.co.za>
2015-03-20 09:03:25vstinner链接issue23715 messages
2015-03-20 09:03:25vstinner创建