News for hackers. Stuff that matters.
Re:You don't need to daemonize by thwarted on Sunday June 28, 2015 @09:34PM (#9795982)
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

Re:You don't need to daemonize by vezzy-fnord on Sunday June 28, 2015 @09:39PM (#9796001)
Yes, that was actually proposed by Poettering himself. DragonFly BSD has a similar mechanism with procctl(2).
Re:You don't need to daemonize by thwarted on Monday June 29, 2015 @02:09PM (#9799820)
Yeah, 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.