diff options
Diffstat (limited to 'inotail.c')
-rw-r--r-- | inotail.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -211,12 +211,12 @@ static int watch_files(struct file_struct *f, int n_files) if (verbose) write_header(fil->name); + memset(&fbuf, 0, sizeof(fbuf)); lseek(ffd, offset, SEEK_SET); while (read(ffd, &fbuf, block_size) != 0) { write(STDOUT_FILENO, fbuf, block_size); } - close(ffd); } |