MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _handle_exitstatus

Method _handle_exitstatus

tools/python-3.11.9-amd64/Lib/subprocess.py:1961–1971  ·  view source on GitHub ↗

All callers to this function MUST hold self._waitpid_lock.

(self, sts,
                               _waitstatus_to_exitcode=_waitstatus_to_exitcode,
                               _WIFSTOPPED=_WIFSTOPPED,
                               _WSTOPSIG=_WSTOPSIG)

Source from the content-addressed store, hash-verified

1959
1960
1961 def _handle_exitstatus(self, sts,
1962 _waitstatus_to_exitcode=_waitstatus_to_exitcode,
1963 _WIFSTOPPED=_WIFSTOPPED,
1964 _WSTOPSIG=_WSTOPSIG):
1965 """All callers to this function MUST hold self._waitpid_lock."""
1966 # This method is called (indirectly) by __del__, so it cannot
1967 # refer to anything outside of its local scope.
1968 if _WIFSTOPPED(sts):
1969 self.returncode = -_WSTOPSIG(sts)
1970 else:
1971 self.returncode = _waitstatus_to_exitcode(sts)
1972
1973 def _internal_poll(self, _deadstate=None, _waitpid=_waitpid,
1974 _WNOHANG=_WNOHANG, _ECHILD=errno.ECHILD):

Callers 3

_execute_childMethod · 0.95
_internal_pollMethod · 0.95
_waitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected