forked from goodboy/tractor
Just call `trio.Process.aclose()` directly for now?
parent
649c5e7504
commit
24a062341e
|
@ -206,10 +206,8 @@ async def do_hard_kill(
|
||||||
# never release until the process exits, now it acts as
|
# never release until the process exits, now it acts as
|
||||||
# a hard-kill time ultimatum.
|
# a hard-kill time ultimatum.
|
||||||
with trio.move_on_after(terminate_after) as cs:
|
with trio.move_on_after(terminate_after) as cs:
|
||||||
|
log.debug(f"Terminating {proc}")
|
||||||
# NOTE: This ``__aexit__()`` shields internally.
|
await proc.aclose()
|
||||||
async with proc: # calls ``trio.Process.aclose()``
|
|
||||||
log.debug(f"Terminating {proc}")
|
|
||||||
|
|
||||||
if cs.cancelled_caught:
|
if cs.cancelled_caught:
|
||||||
# XXX: should pretty much never get here unless we have
|
# XXX: should pretty much never get here unless we have
|
||||||
|
|
Loading…
Reference in New Issue