mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-14 14:09:35 +02:00
Include "closeout.h".
(main): Call atexit with close_stdout.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
#define getusershell _getusershell_sys_proto_
|
||||
|
||||
#include "system.h"
|
||||
#include "closeout.h"
|
||||
|
||||
#undef getusershell
|
||||
|
||||
@@ -449,6 +450,7 @@ Change the effective user id and group id to that of USER.\n\
|
||||
A mere - implies -l. If USER not given, assume root.\n\
|
||||
"));
|
||||
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
|
||||
close_stdout ();
|
||||
}
|
||||
exit (status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user