Proper behaviour of a linux daemon

55 views Asked by At

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.

1

There are 1 answers

0
Kristof Provost On

The easiest thing is to just call the daemon() function. It takes care of all of that for you.