forked from goodboy/tractor
1
0
Fork 0

Handle a context cancel? Might be a noop

sigint2
Tyler Goodlet 2022-02-04 12:33:47 -05:00
parent 0183c5bf9b
commit a6de29517a
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ from trio_typing import TaskStatus
from .log import get_logger
from ._discovery import get_root
from ._state import is_root_process, debug_mode
from ._exceptions import is_multi_cancelled
from ._exceptions import is_multi_cancelled, ContextCancelled
try:
# wtf: only exported when installed in dev mode?
@ -273,6 +273,7 @@ async def _hijack_stdin_for_child(
trio.BrokenResourceError,
trio.Cancelled, # by local cancellation
trio.ClosedResourceError, # by self._rx_chan
ContextCancelled,
) as err:
# XXX: there may be a race with the portal teardown