]> 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:29:08 +0000 (13:29 -0800)
committerGitHub <noreply@github.com>
Wed, 5 Dec 2018 21:29:08 +0000 (13:29 -0800)
commitb2e0649dd9a36d54478d0edb623a18d7379e6f19
treea4a65465e3b58a104d73a8bb8107267a6d1c6610
parent62af9e6583b0b5f5069232c2a6bfd0ceca7fbf95
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