WithPIDCallback sets the channel that reaped child process PIDs are pushed onto.
(ch reap.PidCh)
| 24 | // WithPIDCallback sets the channel that reaped child process PIDs are pushed |
| 25 | // onto. |
| 26 | func 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. |
no outgoing calls