mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40094: Add missing import to wait_process() (GH-19268)
This commit is contained in:
parent
6b982c22e5
commit
afeaea2d6e
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue