MCPcopy Index your code
hub / github.com/coder/coder / signalProcess

Function signalProcess

agent/agentproc/proc_other.go:24–26  ·  view source on GitHub ↗

signalProcess sends a signal to the process group rooted at p. Using the negative PID sends the signal to every process in the group, ensuring child processes (e.g. from shell pipelines) are also signaled.

(p *os.Process, sig syscall.Signal)

Source from the content-addressed store, hash-verified

22// group, ensuring child processes (e.g. from shell pipelines) are
23// also signaled.
24func signalProcess(p *os.Process, sig syscall.Signal) error {
25 return syscall.Kill(-p.Pid, sig)
26}

Callers 1

signalMethod · 0.70

Calls 1

KillMethod · 0.65

Tested by

no test coverage detected