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, 16 Oct 2011 22:54:04 +0000 (18:54 -0400)
commitf988ca8ef5d957f0f34a71c3e3f4194d8af81b46
treed193ef120cbd6b8b216582db4352bca137ddfd3c
parent0257ed83e067bdc9b8f539f7474b5428d8607e0d
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