]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Dec 2018 21:31:07 +0000 (13:31 -0800)
committerGitHub <noreply@github.com>
Wed, 5 Dec 2018 21:31:07 +0000 (13:31 -0800)
commit34510781901b75c9aeca79db41ce0fa92c67878f
treec77f66f1fb200220f75644f7bc9a1f55511499e9
parentac8b47c8b4edd59aaee857717d434df52ec49e6c
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.
(cherry picked from commit 7f52415a6d4841d77d3b7853e83b25a22e0048dc)

Co-authored-by: Oran Avraham <252748+oranav@users.noreply.github.com>
Misc/NEWS.d/next/Library/2018-12-03-19-45-00.bpo-35310.9k28gR.rst [new file with mode: 0644]
Modules/selectmodule.c