Don't shield proc waits
parent
14d60147fa
commit
9f4e497b9c
|
@ -273,10 +273,14 @@ async def new_proc(
|
||||||
# ``trio.Process.__aexit__()`` (it tears down stdio
|
# ``trio.Process.__aexit__()`` (it tears down stdio
|
||||||
# which will kill any waiting remote pdb trace).
|
# which will kill any waiting remote pdb trace).
|
||||||
|
|
||||||
|
# TODO: No idea how we can enforce zombie
|
||||||
|
# reaping more stringently without the shield
|
||||||
|
# we used to have below...
|
||||||
|
|
||||||
# always "hard" join sub procs:
|
# always "hard" join sub procs:
|
||||||
# no actor zombies allowed
|
# no actor zombies allowed
|
||||||
with trio.CancelScope(shield=True):
|
# with trio.CancelScope(shield=True):
|
||||||
await proc.wait()
|
await proc.wait()
|
||||||
else:
|
else:
|
||||||
# `multiprocessing`
|
# `multiprocessing`
|
||||||
assert _ctx
|
assert _ctx
|
||||||
|
|
Loading…
Reference in New Issue