Is there a good reason to write my own daemonize function instead of using daemon(3)?
Is there a good reason to write my own daemonize function instead of using daemon(3)? unix
unix
The daemon() function was not historically available in all flavors of Unix, so a lot of "portable" code doesn't use it. There's really no reason to roll your own recipe as long as all the target platforms you care about have daemon().