MCPcopy Index your code
hub / github.com/DarthSim/overmind / waitForExit

Method waitForExit

start/command.go:211–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211func (c *command) waitForExit() {
212 signal.Notify(c.stopTrig, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
213
214 c.waitForDoneOrStop()
215
216 for _, proc := range c.processes {
217 proc.Stop(false)
218 }
219
220 c.waitForTimeoutOrStop()
221
222 for _, proc := range c.processes {
223 proc.Kill(false)
224 }
225}
226
227func (c *command) handleInfo() {
228 signal.Notify(c.infoTrig, SIGINFO)

Callers 1

RunMethod · 0.95

Calls 4

waitForDoneOrStopMethod · 0.95
waitForTimeoutOrStopMethod · 0.95
KillMethod · 0.80
StopMethod · 0.45

Tested by

no test coverage detected