All callers to this function MUST hold self._waitpid_lock.
(self, sts,
_waitstatus_to_exitcode=_waitstatus_to_exitcode,
_WIFSTOPPED=_WIFSTOPPED,
_WSTOPSIG=_WSTOPSIG)
| 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): |
no outgoing calls
no test coverage detected