forked from goodboy/tractor
1
0
Fork 0

Just call `trio.Process.aclose()` directly for now?

drop_proc_actxmngr
Tyler Goodlet 2023-04-02 14:34:41 -04:00
parent 649c5e7504
commit 24a062341e
1 changed files with 2 additions and 4 deletions

View File

@ -206,10 +206,8 @@ async def do_hard_kill(
# never release until the process exits, now it acts as
# a hard-kill time ultimatum.
with trio.move_on_after(terminate_after) as cs:
# NOTE: This ``__aexit__()`` shields internally.
async with proc: # calls ``trio.Process.aclose()``
log.debug(f"Terminating {proc}")
log.debug(f"Terminating {proc}")
await proc.aclose()
if cs.cancelled_caught:
# XXX: should pretty much never get here unless we have