title: Event Based Monitoring Instead Of Polling In C
body: <p>I have a program which run as a "<code>daemon</code>" and does polling ( to monitor presence of some files followed by taking some action when not sleeping ).Other wise it sleeps for configurable number of seconds and then again wakes up for polling.</p>
  
  <p>How can I make the <code>daemon</code> <code>event based</code> instead of <code>polling</code> based  ?</p>
  
  <p>My platform is linux rhel 5.4 and compiler is gcc version 4.</p>