[ccan] ccan/daemonize fails under Ubuntu

Rusty Russell rusty at rustcorp.com.au
Mon Oct 28 23:21:25 EST 2013


So, Ubuntu's Upstart now has an init --user, which takes the place of
init in adopting orphans.

This breaks the daemonize tests (and daemon_with_notify) which expect
getppid() to be 1.

I think we can relax this test: getppid() changing to anything should be
enough, I think.

Stewart?  If you're happy, I can make the changes.

Thanks,
Rusty.


More information about the ccan mailing list