title: How to detect the launching of programs on Linux?
body: <p>I wrote a simple daemon. 
  This daemon should respond when I run any program.
  How to do this?
  In a big daemon loop: </p>
  
  <pre><code>while(1)
  {
     /* function which catches new programm running */
  }
  </code></pre>
  
  <p>What functions to call in linux, when i'm running a new program (create new process)?</p>