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>
Wed, 5 Oct 2011 17:34:37 +0000 (13:34 -0400)
commit8253512ebadd3f2cddf118aaf41a7dc30703282f
tree963dfce454bcbe66a0c17facf2d07f756ae566b3
parentf5c8e92d69ada46106cc81fa43432375d1e7154a
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