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