]> granicus.if.org Git - python/commit
[3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Oct 2017 12:05:16 +0000 (05:05 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 Oct 2017 12:05:16 +0000 (15:05 +0300)
commit97abcabc195b87d6a5562dbb867a469fac27d3f6
tree89408afab9f30ae7c43ece4e0a60d29d98217bea
parentbe4e9cc769aac3cb46670c049b9f21e412be53d1
[3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)

Always pass -1, or INFTIM where defined, to the poll() system call when
a negative timeout is passed to the poll.poll([timeout]) method in the
select module. Various OSes throw an error with arbitrary negative
values.
(cherry picked from commit 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604)
Lib/test/test_poll.py
Misc/ACKS
Misc/NEWS.d/next/Library/2017-09-04-00-22-31.bpo-31334.9WYRfi.rst [new file with mode: 0644]
Modules/selectmodule.c