WithCatchSignals sets the signals that are caught and forwarded to the child process. By default no signals are forwarded.
(sigs ...os.Signal)
| 32 | // WithCatchSignals sets the signals that are caught and forwarded to the |
| 33 | // child process. By default no signals are forwarded. |
| 34 | func WithCatchSignals(sigs ...os.Signal) Option { |
| 35 | return func(o *options) { |
| 36 | o.CatchSignals = sigs |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func WithLogger(logger slog.Logger) Option { |
| 41 | return func(o *options) { |
no outgoing calls