simplefilewatcher
simplefilewatcher copied to clipboard
Busy loop
In the current code, the select call has a timeout of 0, which makes the
select return immediately. It might be better to use the blocking form of
select (use NULL instead of giving it a pointer to a timeout of zero
seconds) or, even better, allow the user to give a pointer to a timeval to
use as the timeout for the select call.
Original issue reported on code.google.com by [email protected] on 12 Feb 2010 at 7:38