4 ms·
One little known feature added in Linux 3.4 is the PR_SET_CHILD_SUBREAPER prctl(2) [0] that lets you designate the process as being a "subreaper" and it will be
by thwarted 11y ago
One little known feature added in Linux 3.4 is the PR_SET_CHILD_SUBREAPER prctl(2) [0] that lets you designate the process as being a "subreaper" and it will be notified of any descending subprocess exits, just like init would be.
[0] http://man7.org/linux/man-pages/man2/prctl.2.html http://man7.org/linux/man-pages/man2/prctl.2.html
- vezzy-fnord 11y agoYes, that was actually proposed by Poettering himself. DragonFly BSD has a similar mechanism with procctl(2).
- thwarted 11y agoYeah, I did research a while ago to find out where that patch came from when there was a lot of noise about how systemd needed to be pid 1.