]> icculus.org git repositories - dana/openbox.git/commit
Move the GSource attach out to the generic watch code, and avoid blocking reads
authorDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 21:57:37 +0000 (16:57 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 30 Sep 2012 16:01:51 +0000 (12:01 -0400)
commit4536cc4c35d0c727eac428baff81e0aeab91fb04
tree4909cc9cc41ad4e8f8a1f9574cceb74dfd929e05
parenta890c09d08c7a30c275f05baa3bb572b69cb4ca4
Move the GSource attach out to the generic watch code, and avoid blocking reads

GLib seems to call the read function sometimes even tho the PollFD's revents
field is empty.  So don't read from the fd if this happens.
obt/watch.c
obt/watch_inotify.c