Lines Matching defs:signal
49 import signal
143 self.cmd, signal.Signals(-self.returncode))
145 return "Command '%s' died with unknown signal %d." % (
1652 """Send a signal to the process."""
1653 # Don't signal a process that we know has already died.
1656 if sig == signal.SIGTERM:
1658 elif sig == signal.CTRL_C_EVENT:
1659 os.kill(self.pid, signal.CTRL_C_EVENT)
1660 elif sig == signal.CTRL_BREAK_EVENT:
1661 os.kill(self.pid, signal.CTRL_BREAK_EVENT)
1663 raise ValueError("Unsupported signal: {}".format(sig))
1763 signum = getattr(signal, signame, None)
2170 """Send a signal to the process."""
2171 # bpo-38630: Polling reduces the risk of sending a signal to the
2204 self.send_signal(signal.SIGTERM)
2209 self.send_signal(signal.SIGKILL)