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

Method Kill

start/process.go:122–131  ·  view source on GitHub ↗
(keepAlive bool)

Source from the content-addressed store, hash-verified

120}
121
122func (p *process) Kill(keepAlive bool) {
123 p.canDieNow = keepAlive
124
125 if p.Running() {
126 p.output.WriteBoldLine(p, []byte("Killing..."))
127 if err := p.groupSignal(syscall.SIGKILL); err != nil {
128 p.output.WriteErr(p, fmt.Errorf("Can't kill: %s", err))
129 }
130 }
131}
132
133func (p *process) Info() {
134 p.groupSignal(SIGINFO)

Callers 5

StopMethod · 0.95
RunningMethod · 0.80
groupSignalMethod · 0.80
processKillMethod · 0.80
waitForExitMethod · 0.80

Calls 4

RunningMethod · 0.95
groupSignalMethod · 0.95
WriteBoldLineMethod · 0.80
WriteErrMethod · 0.80

Tested by

no test coverage detected