diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:52:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:52:54 +0000 |
commit | 21f7f8fb60ff3a69eb3095e7700b1890d080e8c9 (patch) | |
tree | f93ca1788a3cc782f75d703b538b56bb716dc4a2 /src | |
parent | 1a898f0449fa4fd704740138a98f0a97c326754f (diff) | |
download | coreutils-21f7f8fb60ff3a69eb3095e7700b1890d080e8c9.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src')
-rw-r--r-- | src/factor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c index 63fbcfdb4..b029b89a2 100644 --- a/src/factor.c +++ b/src/factor.c @@ -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); } |