diff options
Diffstat (limited to 'src/watcher.c')
-rw-r--r-- | src/watcher.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/watcher.c b/src/watcher.c index 0c587f1..c18beab 100644 --- a/src/watcher.c +++ b/src/watcher.c @@ -155,7 +155,8 @@ process_event(struct inotify_event *ep) { static struct dirwatcher *dwp; dwp = dirwatcher_find_wd(ep->wd); - + struct file_triplet *tp; + if (ep->mask & IN_IGNORED) /* nothing */ ; else if (ep->mask & IN_Q_OVERFLOW) @@ -187,8 +188,8 @@ process_event(struct inotify_event *ep) logmsg(LOG_DEBUG, "%s/%s written", dwp->spool->source_dir, ep->name); if (spool_add_new_file(dwp->spool, ep->name, 0, NULL) == 0 - && count_processable_triplets()) - schedule_job(&inotify_spool, getuid()); + && (tp = link_processable_triplets())) + schedule_job(&inotify_spool, getuid(), tp); } else logmsg(LOG_NOTICE, "%s/%s: unexpected event %x", dwp->spool->source_dir, ep->name, ep->mask); |