except os.error as error:
errno, msg = error
if errno == 10:
+ self.pid = None
raise SubprocessError("Subprocess '%s' failed." % self.cmd)
+ self.pid = None
raise SubprocessError("Subprocess failed[%d]: %s" % (errno, msg))
if pid == self.pid:
# child exited already
"child killed by signal %d with a return code of %d"
% (sig, rc))
if rc:
+ self.pid = None
raise SubprocessError(
"child exited with return code %d" % rc)
# Child may have exited, but not in error, so we won't say