forked from goodboy/tractor
1
0
Fork 0

Fix one missing import/ref

fence_mp
Tyler Goodlet 2022-02-17 13:03:37 -05:00
parent 509082c935
commit c30cece37a
1 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ _spawn_method: str = "trio"
if platform.system() == 'Windows': if platform.system() == 'Windows':
import multiprocessing as mp
_ctx = mp.get_context("spawn") _ctx = mp.get_context("spawn")
async def proc_waiter(proc: mp.Process) -> None: async def proc_waiter(proc: mp.Process) -> None:
@ -400,7 +401,8 @@ async def new_proc(
if is_root_process(): if is_root_process():
await maybe_wait_for_debugger( await maybe_wait_for_debugger(
child_in_debug=_runtime_vars.get('_debug_mode', False), child_in_debug=_runtime_vars.get(
'_debug_mode', False),
) )
if proc.poll() is None: if proc.poll() is None: