Gary Winiger wrote: >> DESCRIPTION > >> If the nochdir option is other than zero the working directory will >> not be changed to the root directory, otherwise it will be. > > Is this / or ~root?
/ >> RETURN VALUES >> Upon successful completion, daemon() returns 0. Otherwise it returns -1. > > What are the failure modes? Is errno set? daemon() returns -1 only if either fork() or setsid() fail. In that case errno will be set to the values specified in fork(2) and setsid(2). > Clarifications in the man page would be helpful. Will do. v.