News for hackers. Stuff that matters.
Re:fork() can fail by jjnoakes on Wednesday August 20, 2014 @05:50PM (#8204862)
Almost - the main reason for the chdir('/') is so that if you do happen to be in a mounted file system (locally or remotely), your daemon doesn't prevent the system administrator from gracefully unmounting that file system for whatever reason.

There are no comments on this comment yet.