summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-07 14:48:25 +0000
committerJim Meyering <jim@meyering.net>2000-05-07 14:48:25 +0000
commita3d40a9447e08adf7783f1e096463e64ed82f761 (patch)
tree63880095aaf5a4e9442069078adb3b4e908bff30 /src/stty.c
parent309c1c3e47655f610c3c169bc19de9d4a3fc92a1 (diff)
downloadcoreutils-a3d40a9447e08adf7783f1e096463e64ed82f761.tar.xz
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c
index 307e23542..3bbf0a6f1 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -64,6 +64,7 @@
#include "long-options.h"
#include "error.h"
#include "xstrtol.h"
+#include "closeout.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "stty"
@@ -717,6 +718,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
AUTHORS, usage);