summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2008-02-11 18:26:03 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2008-02-11 18:26:03 +0100
commite7bbc35c92f98d24088c854eea3f08d94be9c966 (patch)
treef87640a5586ed65c0020813ad913600548794796
parent6737f1ad17b78496e86dde8b97a531d171f79213 (diff)
inotail.c: Handle IN_IGNORED event
This event is e.g. emitted when we remove a watch on a file.
-rw-r--r--inotail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inotail.c b/inotail.c
index aa11a8c..24c1404 100644
--- a/inotail.c
+++ b/inotail.c
@@ -381,6 +381,8 @@ static int handle_inotify_event(struct inotify_event *inev, struct file_struct *
return 0;
} else if (inev->mask & IN_UNMOUNT) {
fprintf(stderr, "Device containing file '%s' unmounted.\n", f->name);
+ } else if (inev->mask & IN_IGNORED) {
+ return 0;
}
ignore: