title: Daemon Socket server in C
body: <p>I have successfully created a C program which runs an infinite loop waiting for a connecting through sockets. 
  I would like to make it a daemon and be able to start and stop it. How can I do it? What changes should I do to my code to run in the background?</p>