bpo-40094: Add missing import to wait_process() (GH-19268)
This commit is contained in:
parent
6b982c22e5
commit
afeaea2d6e
|
@ -3414,6 +3414,8 @@ def wait_process(pid, *, exitcode, timeout=None):
|
|||
AssertionError. The timeout feature is not available on Windows.
|
||||
"""
|
||||
if os.name != "nt":
|
||||
import signal
|
||||
|
||||
if timeout is None:
|
||||
timeout = SHORT_TIMEOUT
|
||||
t0 = time.monotonic()
|
||||
|
|
Loading…
Reference in New Issue