1

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.

mkaito
  • 1,005
  • 1
  • 10
  • 19

1 Answers1

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