News for hackers. Stuff that matters.
Re:fork() can fail by colanderman on Wednesday August 20, 2014 @04:16PM (#8204330)
For daemonization, daemon(3) is better (EDIT: assuming you only care about Linux). (It also chdirs to /, closes STD*, and detaches from the terminal.)
Re:fork() can fail by cperciva on Wednesday August 20, 2014 @04:29PM (#8204404)
Alas, daemon(3) is not POSIX.
Re:fork() can fail by mindajar on Wednesday August 20, 2014 @04:34PM (#8204435)
daemon(3) isn't part of POSIX, and the OS X man page says "the use of this API is discouraged in favor of using launchd(8)", so who knows what might happen here in the future.

If you don't care about portability, it's an easier call to make.