mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #23485: select.select() is now retried automatically with the recomputed
timeout when interrupted by a signal, except if the signal handler raises an exception. This change is part of the PEP 475. The asyncore and selectors module doesn't catch the InterruptedError exception anymore when calling select.select(), since this function should not raise InterruptedError anymore.
This commit is contained in:
parent
3f5d48bead
commit
f70e1ca0fc
9 changed files with 85 additions and 31 deletions
|
@ -536,7 +536,12 @@ depending on the system error code.
|
|||
.. exception:: InterruptedError
|
||||
|
||||
Raised when a system call is interrupted by an incoming signal.
|
||||
Corresponds to :c:data:`errno` ``EINTR``.
|
||||
Corresponds to :c:data:`errno` :py:data:`~errno.EINTR`.
|
||||
|
||||
.. versionchanged:: 3.5
|
||||
Python now retries system calls when a syscall is interrupted by a
|
||||
signal, except if the signal handler raises an exception (see :pep:`475`
|
||||
for the rationale), instead of raising :exc:`InterruptedError`.
|
||||
|
||||
.. exception:: IsADirectoryError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue