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

Method killIgnoreDead

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

Source from the content-addressed store, hash-verified

105}
106
107func (w *wrapper) killIgnoreDead(signal syscall.Signal) error {
108 err := w.Kill(signal)
109 // Only ignore this error in this method, the regular Kill() can be used for other purposes.
110 if err == syscall.ESRCH {
111 // Already dead
112 return nil
113 }
114 return err
115}
116
117func (w *wrapper) Kill(signal syscall.Signal) error {
118 pid := w.cmd.Process.Pid

Callers 1

WaitMethod · 0.95

Calls 1

KillMethod · 0.95

Tested by

no test coverage detected