1
0
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:
Jim Meyering
2000-05-07 14:52:54 +00:00
parent 1a898f0449
commit 21f7f8fb60

View File

@@ -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);
}