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

Function IsInitProcess

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

IsInitProcess returns true if the current process's PID is 1.

()

Source from the content-addressed store, hash-verified

16
17// IsInitProcess returns true if the current process's PID is 1.
18func IsInitProcess() bool {
19 return os.Getpid() == 1
20}
21
22// startSignalForwarding registers signal handlers synchronously
23// then forwards caught signals to the child in a background

Callers 1

workspaceAgentFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected