mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 02:36:16 +02:00
Include "closeout.h".
(main): Call atexit with close_stdout.
This commit is contained in:
@@ -182,6 +182,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);
|
||||
/* The above handles --help and --version.
|
||||
@@ -204,7 +206,5 @@ main (int argc, char **argv)
|
||||
if (fail)
|
||||
usage (1);
|
||||
|
||||
close_stdout ();
|
||||
|
||||
exit (fail);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user