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 4ec17c1 commit e807ba9Copy full SHA for e807ba9
1 file changed
Lib/subprocess.py
@@ -52,6 +52,7 @@
52
import warnings
53
import contextlib
54
import functools
55
+import math
56
from time import monotonic as _time
57
import types
58
@@ -2080,7 +2081,7 @@ def _wait_pidfd(self, timeout):
2080
2081
try:
2082
poller = select.poll()
2083
poller.register(pidfd, select.POLLIN)
- events = poller.poll(math.ceil(timeout * 1000))
2084
+ events = poller.poll(int(timeout * 1000))
2085
if not events:
2086
raise TimeoutExpired(self.args, timeout)
2087
return True
@@ -2106,7 +2107,7 @@ def _wait_kqueue(self, timeout):
2106
2107
)
2108
2109
events = kq.control([kev], 1, timeout) # wait
- except OSError:
2110
+ except OSError as err:
2111
return False
2112
2113
0 commit comments