Use  and  if set.
Update the kqueue and the inotify monitor to sleep latency when no files can be watched yet.