- Adds child sub reaper support (
prctl
to ensure any orphaned descendant process will getreparented
to caller). - General testing infrastructure cleanup and added more tests.
config := reaper.Config{
Pid: 0,
Options: 0,
Debug: false,
DisablePid1Check: true,
EnableChildSubreaper: true,
StatusChannel: nil,
}
// Start background reaping of orphaned child processes.
go reaper.Start(config)
// Rest of your code ...
You may need to disable the pid 1 check DisablePid1Check
depending on how you are using this option.
What's Changed
Full Changelog: v0.2.2...v0.2.3