diff options
Diffstat (limited to 'src/rm.c')
-rw-r--r-- | src/rm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -104,7 +104,6 @@ use one of these commands:\n\ "), program_name, program_name); puts (_("\nReport bugs to <bug-fileutils@gnu.org>.")); - close_stdout (); } exit (status); } @@ -132,6 +131,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + rm_option_init (&x); while ((c = getopt_long (argc, argv, "dfirvR", long_opts, NULL)) != -1) @@ -195,7 +196,5 @@ main (int argc, char **argv) remove_fini (); - if (x.verbose) - close_stdout (); exit (fail); } |