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, 5 Oct 2011 17:34:37 +0000 (13:34 -0400)
commitfc31ed5fd53f45f905c0010be19183854208516b
treede3d34eebcbaace005aa3c7d10b8e537e48881d9
parent6f9f5678b618f4e37edebd1ae8e527e00c210360
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