mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
The reaper (PID 1) now returns the child's exit code instead of always exiting 0. Signal termination uses the standard Unix convention of 128 + signal number. fixes #21661
13 lines
204 B
Go
13 lines
204 B
Go
//go:build !linux
|
|
|
|
package reaper
|
|
|
|
// IsInitProcess returns true if the current process's PID is 1.
|
|
func IsInitProcess() bool {
|
|
return false
|
|
}
|
|
|
|
func ForkReap(_ ...Option) (int, error) {
|
|
return 0, nil
|
|
}
|