]> granicus.if.org Git - python/commit
[2.7] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4034)
authorRiccardo Coccioli <volans-@users.noreply.github.com>
Wed, 18 Oct 2017 12:04:04 +0000 (14:04 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 Oct 2017 12:04:04 +0000 (15:04 +0300)
commit27b951c63353345cdf7a9a8c4c8133a5dafd6a80
tree6adac0c5a137c1ce62c9e989a06fd5e3a0b67288
parented267e3305a54eddae8106bdaae2c62d4c3b7db6
[2.7] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4034)

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