summaryrefslogtreecommitdiff
path: root/src/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync.c')
-rw-r--r--src/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sync.c b/src/sync.c
index b2c24824a..63e83b95d 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -49,7 +49,6 @@ Force changed blocks to disk, update the super block.\n\
--version output version information and exit\n\
"));
puts (_("\nReport bugs to <bug-fileutils@gnu.org>."));
- close_stdout ();
}
exit (status);
}
@@ -62,6 +61,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);