summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index c6203b1b9..773f32c71 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -1654,7 +1654,7 @@ main (int argc, char **argv)
tail_forever (F, n_files);
}
- if (have_read_stdin && close (0) < 0)
+ if (have_read_stdin && close (STDIN_FILENO) < 0)
error (EXIT_FAILURE, errno, "-");
exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}