[issue31786] In select.poll.poll() ms can be 0 if timeout < 0
Pablo
report at bugs.python.org
Sun Oct 15 10:13:38 EDT 2017
Pablo <pablogsal at gmail.com> added the comment:
I have added a Pull Request fixing this issue. The current implementation is checking in the syscall if the value for ms before rounding was negative.
To test for this, I call poll.poll in a thread and check that the thread is alive after a join with timeout (so this means it has blocked). Then to clean up, I write to a pipe and therefore it unblocks.
The implementation is available in the PR:
https://github.com/python/cpython/pull/4003
----------
nosy: +pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31786>
_______________________________________
More information about the Python-bugs-list
mailing list