diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-20 22:03:55 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-20 22:03:55 +0000 |
commit | c75dc9689ef7a158da9b27e28ccd1b0e823e309d (patch) | |
tree | 6ab370035ff7665f64c18a7bff5411c39a06b7d4 /src/cksum.c | |
parent | 02f78789286f150562ff4ab9692f4b7021d60088 (diff) | |
download | coreutils-c75dc9689ef7a158da9b27e28ccd1b0e823e309d.tar.xz |
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
Diffstat (limited to 'src/cksum.c')
-rw-r--r-- | src/cksum.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cksum.c b/src/cksum.c index 0dfb31966..b185e5d45 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -113,6 +113,7 @@ main () # include <getopt.h> # include <sys/types.h> # include "system.h" +# include "closeout.h" # include "long-options.h" # include "error.h" @@ -293,6 +294,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); |