summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
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;