(main): Call atexit with close_stdout.
#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"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
AUTHORS, usage);
#define getusershell _getusershell_sys_proto_
#include "system.h"
+#include "closeout.h"
#undef getusershell
A mere - implies -l. If USER not given, assume root.\n\
"));
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
+ close_stdout ();
}
exit (status);
}