diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 11:54:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 11:54:28 (GMT) |
commit | a453cd8d85f583914a1bbb8d5054306bbbafdb7c (patch) | |
tree | 13410366cc0465611601372e268c11bd1579b6db /Doc/library | |
parent | a3c0202eb574bd3c09bc81b74227e146503fff94 (diff) | |
download | cpython-a453cd8d85f583914a1bbb8d5054306bbbafdb7c.zip cpython-a453cd8d85f583914a1bbb8d5054306bbbafdb7c.tar.gz cpython-a453cd8d85f583914a1bbb8d5054306bbbafdb7c.tar.bz2 |
Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retried
when interrupted by a signal not in the *sigset* parameter, if the signal
handler does not raise an exception. signal.sigtimedwait() recomputes the
timeout with a monotonic clock when it is retried.
Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't
raise InterruptedError anymore if it is interrupted by a signal not in its
sigset parameter.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/signal.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index ed616b2..0156415 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -408,6 +408,11 @@ The :mod:`signal` module defines the following functions: .. versionadded:: 3.3 + .. versionchanged:: 3.5 + The function is now retried if interrupted by a signal not in *sigset* + and the signal handler does not raise an exception (see :pep:`475` for + the rationale). + .. function:: sigtimedwait(sigset, timeout) @@ -422,6 +427,11 @@ The :mod:`signal` module defines the following functions: .. versionadded:: 3.3 + .. versionchanged:: 3.5 + The function is now retried with the recomputed timeout if interrupted by + a signal not in *sigset* and the signal handler does not raise an + exception (see :pep:`475` for the rationale). + .. _signal-example: |