WithExecArgs specifies the exec arguments for the fork exec call. By default the same arguments as the parent are used as dictated by os.Args. Since ForkReap calls a fork-exec it is the responsibility of the caller to avoid fork-bombing oneself.
(args ...string)
| 16 | // os.Args. Since ForkReap calls a fork-exec it is the responsibility of |
| 17 | // the caller to avoid fork-bombing oneself. |
| 18 | func WithExecArgs(args ...string) Option { |
| 19 | return func(o *options) { |
| 20 | o.ExecArgs = args |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // WithPIDCallback sets the channel that reaped child process PIDs are pushed |
| 25 | // onto. |
no outgoing calls