MCPcopy Index your code
hub / github.com/coder/coder / WithPIDCallback

Function WithPIDCallback

agent/reaper/reaper.go:26–30  ·  view source on GitHub ↗

WithPIDCallback sets the channel that reaped child process PIDs are pushed onto.

(ch reap.PidCh)

Source from the content-addressed store, hash-verified

24// WithPIDCallback sets the channel that reaped child process PIDs are pushed
25// onto.
26func WithPIDCallback(ch reap.PidCh) Option {
27 return func(o *options) {
28 o.PIDs = ch
29 }
30}
31
32// WithCatchSignals sets the signals that are caught and forwarded to the
33// child process. By default no signals are forwarded.

Callers 2

TestReapFunction · 0.92
TestReapInterruptFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestReapFunction · 0.74
TestReapInterruptFunction · 0.74