@@ -731,10 +731,6 @@ def _check_exec_result(self, pid, returncode, orig_executable, cwd,
731
731
732
732
733
733
class _UnixSubprocessTransport (base_subprocess .BaseSubprocessTransport ):
734
- def __init__ (self , * args , ** kwargs ):
735
- super ().__init__ (* args , ** kwargs )
736
- self ._failed_before_exec = False
737
-
738
734
@coroutine
739
735
def _start (self , args , shell , stdin , stdout , stderr , bufsize , ** kwargs ):
740
736
with events .get_child_watcher () as watcher :
@@ -760,7 +756,7 @@ def _start(self, args, shell, stdin, stdout, stderr, bufsize, **kwargs):
760
756
universal_newlines = False , bufsize = bufsize , ** kwargs )
761
757
yield from exec_waiter
762
758
except :
763
- self ._failed_before_exec = True
759
+ self ._failed_before_start = True
764
760
# TODO stdin is probably closed by proc, but what about stdin_w
765
761
# so far? check this
766
762
if stdin_w is not None :
@@ -776,17 +772,6 @@ def _start(self, args, shell, stdin, stdout, stderr, bufsize, **kwargs):
776
772
def _child_watcher_callback (self , pid , returncode ):
777
773
self ._loop .call_soon_threadsafe (self ._process_exited , returncode )
778
774
779
- @coroutine
780
- def _wait (self ):
781
- if self ._failed_before_exec :
782
- # let loop._make_subprocess_transport() call transport._wait() when
783
- # an excpetion is raised asynchronously during the setup of the
784
- # transport, which garantees that necessary cleanup will be
785
- # performed
786
- return
787
- else :
788
- return (yield from super ()._wait ())
789
-
790
775
791
776
class AbstractChildWatcher :
792
777
"""Abstract base class for monitoring child processes.
0 commit comments