You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP 475: handle EINTR in the select and selectors module #67673
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2015-03-31.10:20:50.805>created_at=<Date2015-02-19.13:32:55.616>labels= ['extension-modules']
title='PEP 475: handle EINTR in the select and selectors module'updated_at=<Date2015-04-20.09:31:06.576>user='https://github.com/vstinner'
Ok, here is a first patch just for select.select().
It took me some time to write this small patch, because I wanted first to push my new API to handle time in pytime.h (Issue bpo-22117). The new time C API has been merged.
Activity
vstinner commentedon Feb 19, 2015
The implementation of the PEP-475 has to modify the following functions to restart on EINTR (and recompute the timeout):
See also issues bpo-18885 and bpo-23285.
vstinner commentedon Mar 30, 2015
Ok, here is a first patch just for select.select().
It took me some time to write this small patch, because I wanted first to push my new API to handle time in pytime.h (Issue bpo-22117). The new time C API has been merged.
python-dev commentedon Mar 30, 2015
New changeset 0ff1090307c7 by Victor Stinner in branch 'default':
Issue bpo-23485: select.select() is now retried automatically with the recomputed
https://hg.python.org/cpython/rev/0ff1090307c7
python-dev commentedon Mar 30, 2015
New changeset 17b6d0d7da00 by Victor Stinner in branch 'default':
Issue bpo-23485: Fix test_signal, select.select() now retries the syscall if the
https://hg.python.org/cpython/rev/17b6d0d7da00
python-dev commentedon Mar 30, 2015
New changeset 0591cf5c9ebd by Victor Stinner in branch 'default':
Issue bpo-23485: Add _PyTime_FromMillisecondsObject() function
https://hg.python.org/cpython/rev/0591cf5c9ebd
New changeset 69b1683ee001 by Victor Stinner in branch 'default':
Issue bpo-23485: select.poll.poll() is now retried when interrupted by a signal
https://hg.python.org/cpython/rev/69b1683ee001
New changeset 5194a84ed9f3 by Victor Stinner in branch 'default':
Issue bpo-23485: select.epoll.poll() is now retried when interrupted by a signal
https://hg.python.org/cpython/rev/5194a84ed9f3
python-dev commentedon Mar 31, 2015
New changeset b017ca5d28bc by Victor Stinner in branch 'default':
Issue bpo-23485: select.kqueue.control() is now retried when interrupted by a signal
https://hg.python.org/cpython/rev/b017ca5d28bc
New changeset f54bc2c52dfd by Victor Stinner in branch 'default':
Issue bpo-23485: select.devpoll.poll() is now retried when interrupted by a signal
https://hg.python.org/cpython/rev/f54bc2c52dfd
New changeset 76d297869859 by Victor Stinner in branch 'default':
Issue bpo-23485: Enhance and update selectors doc and test_selectors
https://hg.python.org/cpython/rev/76d297869859
python-dev commentedon Apr 1, 2015
New changeset 65ac8e587bb0 by Victor Stinner in branch 'default':
Issue bpo-22117, issue bpo-23485: Fix _PyTime_AsMilliseconds() and
https://hg.python.org/cpython/rev/65ac8e587bb0