From 98a70bca236328e23db2b13b531ab9202c93b2ca Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 23 Dec 2006 15:03:32 +0100 Subject: inotail.c: Keep tailing moved files by fd As a side effect of the recent change to not reopen files while watching (commit 1ddefac3dfe654f23fc944df5d7c52a078692012) it's possible now to follow moved files by their open fd. --- inotail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inotail.c b/inotail.c index 1cb29f6..5e98ebd 100644 --- a/inotail.c +++ b/inotail.c @@ -305,8 +305,8 @@ static int handle_inotify_event(struct inotify_event *inev, struct file_struct * } else if (inev->mask & IN_DELETE_SELF) { fprintf(stderr, "File '%s' deleted.\n", fil->name); } else if (inev->mask & IN_MOVE_SELF) { - /* TODO: Try to follow file/fd */ fprintf(stderr, "File '%s' moved.\n", fil->name); + return n_ignored; } else if (inev->mask & IN_UNMOUNT) { fprintf(stderr, "Device containing file '%s' unmounted.\n", fil->name); } -- cgit v1.2.3-54-g00ecf 1cd69c49edca483a7b11d461'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/Documentation/media/uapi
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/media/uapi')