MCPcopy Index your code
hub / github.com/cortesi/modd / Signal

Method Signal

shell/shell.go:150–157  ·  view source on GitHub ↗
(sig os.Signal)

Source from the content-addressed store, hash-verified

148}
149
150func (e *Executor) Signal(sig os.Signal) error {
151 e.Lock()
152 defer e.Unlock()
153 if !e.running() {
154 return fmt.Errorf("executor not running")
155 }
156 return e.sendSignal(sig)
157}
158
159func (e *Executor) Stop() error {
160 return e.Signal(os.Kill)

Callers 2

StopMethod · 0.95
RestartMethod · 0.80

Calls 2

runningMethod · 0.95
sendSignalMethod · 0.95

Tested by

no test coverage detected