4 ms·
Of all the great content in APUE, I think W. Richard Stevens’ (RIP) coverage of daemonization is the only piece I’ve ever used. Fortunately I recently replaced
by macintux 6y ago
Of all the great content in APUE, I think W. Richard Stevens’ (RIP) coverage of daemonization is the only piece I’ve ever used.
Fortunately I recently replaced my lost 1st edition with a 2nd edition, and the coverage looks similar. From what I can see there are two details left out of this article:
* Why changing the working directory is important (so the daemon doesn’t accidentally prevent a file system from being unmounted in the future).
* WRS emphasized logging.
Some of the details are different (umask as the first function instead of the last), but the highlights are comparable.