]> granicus.if.org Git - python/commit
bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040)
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 11 Sep 2018 17:29:48 +0000 (20:29 +0300)
committerGitHub <noreply@github.com>
Tue, 11 Sep 2018 17:29:48 +0000 (20:29 +0300)
commitb690b9b04729ba3d91c59bff1bb11c3dcc1b50fc
tree115eff3060e514bb31b18719eb12a687e86310ad
parent0baa72f4b2e7185298d09cf64c7b591efcd22af0
bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040)

Although the kernel accepts any negative value for timeout, the
documented value to block indefinitely is -1.

This commit also makes the code similar to select.poll.poll().
Modules/selectmodule.c