Avoid blocks on read() for inotify.
authorDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 22:05:44 +0000 (17:05 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:54:04 +0000 (18:54 -0400)
commit5de6f71f345513b4cb3643eb7679664297afcb70
tree8c8295a0e142cb8e1614c3cd481a5593c6988729
parent6de88d4bd25c55018bb830a3b246b87184ecd7ef
Avoid blocks on read() for inotify.

When we come into the function we don't know how much data is available to
read.  So just read a single event and return, so poll can figure out if there
is more for us or not.
obt/watch_inotify.c