Skip to content

v0.2.3

Latest
Compare
Choose a tag to compare
@ramr ramr released this 05 Nov 04:46
67fbabb
  • Adds child sub reaper support (prctl to ensure any orphaned descendant process will get reparented 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

  • Add subreaper functionality (stale code), add more tests and cleanup tests by @ramr in #27

Full Changelog: v0.2.2...v0.2.3