MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / Kill

Method Kill

common/sandbox/cmd/exec.go:118–120  ·  view source on GitHub ↗

Kill causes the Process to exit immediately. Kill does not wait until the Process has actually exited. This only kills the Process itself, not any other processes it may have started.

()

Source from the content-addressed store, hash-verified

116// the Process has actually exited. This only kills the Process itself,
117// not any other processes it may have started.
118func (p *Process) Kill() error {
119 return p.kill()
120}
121
122// Wait waits for the Process to exit, and then returns a
123// ProcessState describing its status and an error, if any.

Callers 4

runAsyncFunction · 0.80
runInteractiveAsyncFunction · 0.80
signalMethod · 0.80
RunUnixShellFunction · 0.80

Calls 1

killMethod · 0.95

Tested by

no test coverage detected