summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-19 08:16:38 +0000
committerJim Meyering <jim@meyering.net>2003-07-19 08:16:38 +0000
commitfe52d65af0fcfdc89b67442d4516449eec41d546 (patch)
treeac6527c5034bf3119da426440a7d086fd32ef507 /src/tty.c
parent3fd76bf433716652406a4e5669da1faf507214e1 (diff)
downloadcoreutils-fe52d65af0fcfdc89b67442d4516449eec41d546.tar.xz
Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tty.c b/src/tty.c
index a14315f58..555fe19cf 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -29,6 +29,7 @@
#include "system.h"
#include "closeout.h"
+#include "exitfail.h"
#include "error.h"
/* The official name of this program (e.g., no `g' prefix). */
@@ -84,7 +85,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- close_stdout_set_status (3);
+ exit_failure = 3;
atexit (close_stdout);
silent = 0;