canonical / pebble

Take control of your internal daemons!
GNU General Public License v3.0
136 stars 51 forks source link

Turn off child subreaper at OS level in reaper.Stop #412

Open benhoyt opened 2 months ago

benhoyt commented 2 months ago

Currently reaper.Stop kills the reaper tomb and does some bookkeeping, but doesn't actually make the OS call to turn off child subreaping. We should do that.

Also, while we're in there, we should clean up setChildSubreaper's return values. It returns (bool, error) right now, and it's unnecessarily confusing.