MCPcopy
hub / github.com/encode/uvicorn / kill

Method kill

uvicorn/supervisors/multiprocess.py:89–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 self.child_conn.close()
88
89 def kill(self) -> None:
90 # In Windows, the method will call `TerminateProcess` to kill the process.
91 # In Unix, the method will send SIGKILL to the process.
92 self.process.kill()
93
94 def join(self) -> None:
95 logger.info(f"Waiting for child process [{self.process.pid}]")

Callers 4

keep_subprocess_aliveMethod · 0.95
terminateMethod · 0.80
restartMethod · 0.80

Calls

no outgoing calls

Tested by 1