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