MCPcopy Create free account
hub / github.com/Shopify/goose / Kill

Method Kill

shell/supervisor.go:117–128  ·  view source on GitHub ↗
(signal syscall.Signal)

Source from the content-addressed store, hash-verified

115}
116
117func (w *wrapper) Kill(signal syscall.Signal) error {
118 pid := w.cmd.Process.Pid
119 if w.sysProcAttr != nil && w.sysProcAttr.Setpgid {
120 pid = -pid
121 }
122 log(w.ctx, nil).
123 WithField("pid", pid).
124 WithField("signal", signal.String()).
125 Debug("sending signal")
126
127 return syscall.Kill(pid, signal)
128}

Callers 1

killIgnoreDeadMethod · 0.95

Calls 2

KillMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected