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

Method runProcesses

start/command.go:196–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194}
195
196func (c *command) runProcesses() {
197 for _, p := range c.processes {
198 c.doneWg.Add(1)
199
200 go func(p *process, trig chan bool, wg *sync.WaitGroup) {
201 defer wg.Done()
202 defer func() { trig <- true }()
203
204 p.StartObserving()
205 }(p, c.doneTrig, &c.doneWg)
206 }
207
208 utils.FatalOnErr(c.tmux.Start())
209}
210
211func (c *command) waitForExit() {
212 signal.Notify(c.stopTrig, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)

Callers 1

RunMethod · 0.95

Calls 3

FatalOnErrFunction · 0.92
StartObservingMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected