canonical / pebble

Take control of your internal daemons!
https://canonical-pebble.readthedocs-hosted.com/
GNU General Public License v3.0
143 stars 54 forks source link

fix: actually turn off child subreaping in reaper.Stop #454

Closed benhoyt closed 1 month ago

benhoyt commented 1 month ago

Previously we weren't actually turning off child subreaping at the OS level in reaper.Stop, so it didn't reverse reaper.Start. Fix this, and also simplify the error handling a little.

This almost certainly didn't cause problems, because as soon as the Pebble process exits it doesn't matter. But it wouldn't have turned it off in tests, and it's just the Right Thing To Do.

Fixes #412

benhoyt commented 1 month ago

Yep, fair point -- fixed.