]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
authorJim Meyering <jim@meyering.net>
Sat, 20 May 2000 22:03:55 +0000 (22:03 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 May 2000 22:03:55 +0000 (22:03 +0000)
src/cksum.c

index 0dfb31966a7f7ec9d6f843042ca277344509dc91..b185e5d4502cc5dd70f1be445e009960975e14c9 100644 (file)
@@ -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);