diff options
-rw-r--r-- | src/tail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tail.c b/src/tail.c index 1935605ef..290ada483 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1141,6 +1141,7 @@ tail_forever (struct File_spec *f, size_t n_files, double sleep_interval) f[i].fd = -1; f[i].errnum = errno; error (0, errno, "%s", name); + close (fd); /* ignore failure */ continue; } |