]> granicus.if.org Git - python/commit
bpo-31334: Fix timeout in select.poll.poll() (GH-3277)
authorRiccardo Coccioli <volans-@users.noreply.github.com>
Tue, 17 Oct 2017 19:45:07 +0000 (21:45 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Oct 2017 19:45:07 +0000 (12:45 -0700)
commit6cfa927ceb931ad968b5b03e4a2bffb64a8a0604
tree855bb4cc90ec73fbcd093d09a4df313c92850e75
parent2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46
bpo-31334: Fix timeout in select.poll.poll() (GH-3277)

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.
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