summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index f16b23b..01df96b 100644
--- a/inotail.c
+++ b/inotail.c
@@ -245,7 +245,7 @@ static int tail_file(struct file_struct *f, unsigned int n_units, char mode)
}
/* We cannot seek on these */
- if (S_ISFIFO(finfo.st_mode) || S_ISSOCK(finfo.st_mode) || f->fd == STDIN_FILENO)
+ if (IS_PIPELIKE(finfo.st_mode) || f->fd == STDIN_FILENO)
return tail_pipe(f);
f->st_size = finfo.st_size;