From e7bbc35c92f98d24088c854eea3f08d94be9c966 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 11 Feb 2008 18:26:03 +0100 Subject: inotail.c: Handle IN_IGNORED event This event is e.g. emitted when we remove a watch on a file. --- inotail.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inotail.c') 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: -- cgit v1.2.3-54-g00ecf