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>
Wed, 3 Aug 2011 21:44:55 +0000 (17:44 -0400)
commit04a8cd30918192a010d9a5adf033a290e6df6049
tree1a02da21ee553dd753f7a11d3bd1438f1e9745a3
parent6ff4586587c091bb447a704af05435123a2d1748
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