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

Method _send_signal

Lib/multiprocessing/popen_fork.py:47–55  ·  view source on GitHub ↗
(self, sig)

Source from the content-addressed store, hash-verified

45 return self.returncode
46
47 def _send_signal(self, sig):
48 if self.returncode is None:
49 try:
50 os.kill(self.pid, sig)
51 except ProcessLookupError:
52 pass
53 except OSError:
54 if self.wait(timeout=0.1) is None:
55 raise
56
57 def interrupt(self):
58 self._send_signal(signal.SIGINT)

Callers 3

interruptMethod · 0.95
terminateMethod · 0.95
killMethod · 0.95

Calls 2

waitMethod · 0.95
killMethod · 0.45

Tested by

no test coverage detected