MCPcopy Index your code
hub / github.com/RustPython/RustPython / _handle_exitstatus

Method _handle_exitstatus

Lib/subprocess.py:1995–2002  ·  view source on GitHub ↗

All callers to this function MUST hold self._waitpid_lock.

(self, sts, _del_safe=_del_safe)

Source from the content-addressed store, hash-verified

1993
1994
1995 def _handle_exitstatus(self, sts, _del_safe=_del_safe):
1996 """All callers to this function MUST hold self._waitpid_lock."""
1997 # This method is called (indirectly) by __del__, so it cannot
1998 # refer to anything outside of its local scope.
1999 if _del_safe.WIFSTOPPED(sts):
2000 self.returncode = -_del_safe.WSTOPSIG(sts)
2001 else:
2002 self.returncode = _del_safe.waitstatus_to_exitcode(sts)
2003
2004 def _internal_poll(self, _deadstate=None, _del_safe=_del_safe):
2005 """Check if child process has terminated. Returns returncode

Callers 3

_execute_childMethod · 0.95
_internal_pollMethod · 0.95
_waitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected