Lines Matching refs:fd_notify
70 static int fd_notify, reap_wd; variable
110 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
114 fd_notify, EVENT_BUF_LEN); in verify_inotify()
178 fd_notify = myinotify_init1(O_NONBLOCK); in setup()
179 if (fd_notify < 0) { in setup()
190 if ((wd = myinotify_add_watch(fd_notify, FILE_PATH, in setup()
195 fd_notify); in setup()
217 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) { in cleanup()
219 "inotify_rm_watch (%d, %d) failed,", fd_notify, wd); in cleanup()
223 if (fd_notify > 0) in cleanup()
224 SAFE_CLOSE(fd_notify); in cleanup()