diff options
author | Jim Meyering <jim@meyering.net> | 2002-08-25 14:32:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-08-25 14:32:02 +0000 |
commit | 3124a4e39341371d69097cf276fc00bd65a0e5f1 (patch) | |
tree | 9d09a01198e030ddf72ba599dea3fa7c2631b3a9 /src/tail.c | |
parent | f7f7207a69ad5e5b1a5a617f6a76986f54888960 (diff) | |
download | coreutils-3124a4e39341371d69097cf276fc00bd65a0e5f1.tar.xz |
(main): Close STDIN_FILENO rather than a literal `0'.
Diffstat (limited to 'src/tail.c')
-rw-r--r-- | src/tail.c | 2 |
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); } |