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

Function WithExecArgs

agent/reaper/reaper.go:18–22  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

16// os.Args. Since ForkReap calls a fork-exec it is the responsibility of
17// the caller to avoid fork-bombing oneself.
18func 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.

Callers 4

workspaceAgentFunction · 0.92
TestReapFunction · 0.92
TestForkReapExitCodesFunction · 0.92
TestReapInterruptFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestReapFunction · 0.74
TestForkReapExitCodesFunction · 0.74
TestReapInterruptFunction · 0.74