forked from goodboy/tractor
1
0
Fork 0

Use `.exitcode` which is poll + error handling

maybe_cancel_the_cancel_
Tyler Goodlet 2022-01-21 09:05:35 -05:00
parent 532974fb90
commit 9650055519
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ async def mp_new_proc(
# XXX: monkey patch poll API to match the ``subprocess`` API.. # XXX: monkey patch poll API to match the ``subprocess`` API..
# not sure why they don't expose this but kk. # not sure why they don't expose this but kk.
proc.poll = proc._popen.poll # type: ignore proc.poll = lambda: proc.exitcode # type: ignore
# except: # except:
# TODO: in the case we were cancelled before the sub-proc # TODO: in the case we were cancelled before the sub-proc