MCPcopy Index your code
hub / github.com/python/cpython / _handle_exitstatus

Method _handle_exitstatus

Lib/subprocess.py:2049–2056  ·  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

2047
2048
2049 def _handle_exitstatus(self, sts, _del_safe=_del_safe):
2050 """All callers to this function MUST hold self._waitpid_lock."""
2051 # This method is called (indirectly) by __del__, so it cannot
2052 # refer to anything outside of its local scope.
2053 if _del_safe.WIFSTOPPED(sts):
2054 self.returncode = -_del_safe.WSTOPSIG(sts)
2055 else:
2056 self.returncode = _del_safe.waitstatus_to_exitcode(sts)
2057
2058 def _internal_poll(self, _deadstate=None, _del_safe=_del_safe):
2059 """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