From: Jim Meyering Date: Sat, 20 May 2000 22:03:55 +0000 (+0000) Subject: Arrange to call close_stdout upon exit. Don't close stdout explicitly. X-Git-Tag: FILEUTILS-4_0t~78 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=c75dc9689ef7a158da9b27e28ccd1b0e823e309d;p=thirdparty%2Fcoreutils.git Arrange to call close_stdout upon exit. Don't close stdout explicitly. --- diff --git a/src/cksum.c b/src/cksum.c index 0dfb31966a..b185e5d450 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -113,6 +113,7 @@ main () # include # include # 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);