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

Function procSysProcAttr

agent/agentproc/proc_other.go:14–18  ·  view source on GitHub ↗

procSysProcAttr returns the SysProcAttr to use when spawning processes. On Unix, Setpgid creates a new process group so that signals can be delivered to the entire group (the shell and all its children).

()

Source from the content-addressed store, hash-verified

12// that signals can be delivered to the entire group (the shell
13// and all its children).
14func procSysProcAttr() *syscall.SysProcAttr {
15 return &syscall.SysProcAttr{
16 Setpgid: true,
17 }
18}
19
20// signalProcess sends a signal to the process group rooted at p.
21// Using the negative PID sends the signal to every process in the

Callers 1

startMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected