]> granicus.if.org Git - python/commit
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
authorOran Avraham <252748+oranav@users.noreply.github.com>
Wed, 5 Dec 2018 20:36:03 +0000 (22:36 +0200)
committerVictor Stinner <vstinner@redhat.com>
Wed, 5 Dec 2018 20:36:03 +0000 (21:36 +0100)
commit7f52415a6d4841d77d3b7853e83b25a22e0048dc
tree6eef274e7577448b78fb638442f53f6826041192
parent67a93b3a0b3814e97ef9d077b21325fc8ce351b2
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)

select() calls are retried on EINTR (per PEP 475).  However, if a
timeout was provided and the deadline has passed after running the
signal handlers, rlist, wlist and xlist should be cleared since select(2)
left them unmodified.
Misc/NEWS.d/next/Library/2018-12-03-19-45-00.bpo-35310.9k28gR.rst [new file with mode: 0644]
Modules/selectmodule.c