aboutsummaryrefslogtreecommitdiffstats
path: root/src/cksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cksum.c')
-rw-r--r--src/cksum.c3
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);