forked from goodboy/tractor
Use `.exitcode` which is poll + error handling
parent
532974fb90
commit
9650055519
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue