MCPcopy Create free account
hub / github.com/albertz/helpers / terminate

Method terminate

asyncproc.py:221–250  ·  view source on GitHub ↗

Terminate the process, with escalating force as needed. First try gently, but increase the force if it doesn't respond to persuassion. The levels tried are, in order: - close the standard input of the process, so it gets an EOF. - send SIGTERM to the process. - send SIGKILL to th

(self, graceperiod=1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

terminateMethod · 0.45

Calls 4

closeinputMethod · 0.95
killMethod · 0.95
waitMethod · 0.95
with_timeoutFunction · 0.85

Tested by

no test coverage detected