What behaviours define a well written Linux daemon? I read about the double fork, closing standard file descriptors, and so on, but I wonder if someone experienced in writing these things could give me the low down.
Asked
Active
Viewed 51 times
1 Answers
0
The easiest thing is to just call the daemon() function. It takes care of all of that for you.

Kristof Provost
- 26,018
- 2
- 26
- 28