summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index a73ffa25d..5efaf57d9 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -1280,7 +1280,7 @@ tail_forever_inotify (int wd, struct File_spec *f, size_t n_files,
{
/* See if the process we are monitoring is still alive. */
if (kill (pid, 0) != 0 && errno != EPERM)
- break;
+ exit (EXIT_SUCCESS);
continue;
}