title: Linux daemonize
body: <p>I am writing a Linux daemon . I found two ways to do it.</p>
  
  <ol>
  <li>Daemonize your process by calling <code>fork()</code> and setting <code>sid</code>.</li>
  <li>Running your program with <code>&amp;</code>.</li>
  </ol>
  
  <p>Which is the right way to do it?</p>