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

Method wait

Lib/multiprocessing/popen_fork.py:37–45  ·  view source on GitHub ↗
(self, timeout=None)

Source from the content-addressed store, hash-verified

35 return self.returncode
36
37 def wait(self, timeout=None):
38 if self.returncode is None:
39 if timeout is not None:
40 from multiprocessing.connection import wait
41 if not wait([self.sentinel], timeout):
42 return None
43 # This shouldn't block if wait() returned successfully.
44 return self.poll(os.WNOHANG if timeout == 0.0 else 0)
45 return self.returncode
46
47 def _send_signal(self, sig):
48 if self.returncode is None:

Callers 15

_run_with_syncFunction · 0.95
_managed_subprocessFunction · 0.95
test_stdin_noneMethod · 0.95
test_stderr_noneMethod · 0.95
_assert_pythonMethod · 0.95
_assert_cwdMethod · 0.95
test_stdin_pipeMethod · 0.95
test_stdin_filedesMethod · 0.95
test_stdin_fileobjMethod · 0.95
test_stdout_filedesMethod · 0.95

Calls 2

pollMethod · 0.95
waitFunction · 0.90

Tested by 15

_managed_subprocessFunction · 0.76
test_stdin_noneMethod · 0.76
test_stderr_noneMethod · 0.76
_assert_pythonMethod · 0.76
_assert_cwdMethod · 0.76
test_stdin_pipeMethod · 0.76
test_stdin_filedesMethod · 0.76
test_stdin_fileobjMethod · 0.76
test_stdout_filedesMethod · 0.76
test_stdout_fileobjMethod · 0.76