We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c6b99 commit 527646dCopy full SHA for 527646d
1 file changed
Lib/subprocess.py
@@ -51,7 +51,6 @@
51
import threading
52
import warnings
53
import contextlib
54
-import functools
55
import math
56
from time import monotonic as _time
57
import types
@@ -2079,7 +2078,7 @@ def _wait_pidfd(self, timeout):
2079
2078
try:
2080
poller = select.poll()
2081
poller.register(pidfd, select.POLLIN)
2082
- events = poller.poll(int(timeout * 1000))
+ events = poller.poll(math.ceil(timeout * 1000))
2083
if not events:
2084
raise TimeoutExpired(self.args, timeout)
2085
return True
0 commit comments