]> icculus.org git repositories - dana/openbox.git/commit
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, 30 Sep 2012 16:01:51 +0000 (12:01 -0400)
commit1bdcd5a2a4b6aa6d1c5d46f74073d2ef8195e129
tree7c6ff6f13ebdd19cbe050b33b9e15ec22bb2e08d
parent4536cc4c35d0c727eac428baff81e0aeab91fb04
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