There are a lot of example implementations of daemons on the net. Most that I saw do not use the daemon(3) function to run the program in the background. Is that just a matt
There is no daemon function in POSIX. It's a vendor extension. Thus anyone writing portable code simply writes their own.
daemon