Skip to content

Commit

Permalink
Shield hard kill call?
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jul 5, 2021
1 parent 2a8a90a commit e084925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tractor/_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ async def spawn_subactor(
# since trio does this internally on ``__aexit__()``

log.debug(f"Attempting to kill {proc}")
await do_hard_kill(proc)
with trio.CancelScope(shield=True):
await do_hard_kill(proc)


async def new_proc(
Expand Down

0 comments on commit e084925

Please sign in to comment.