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

Function WithCatchSignals

agent/reaper/reaper.go:34–38  ·  view source on GitHub ↗

WithCatchSignals sets the signals that are caught and forwarded to the child process. By default no signals are forwarded.

(sigs ...os.Signal)

Source from the content-addressed store, hash-verified

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

Callers 2

workspaceAgentFunction · 0.92
TestReapInterruptFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestReapInterruptFunction · 0.74