diff options
Diffstat (limited to 'src/shred.c')
-rw-r--r-- | src/shred.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shred.c b/src/shred.c index fd04c2c14..365d7c5f1 100644 --- a/src/shred.c +++ b/src/shred.c @@ -477,7 +477,6 @@ Delete a file securely, first overwriting it to hide its contents.\n\ \n\ FIXME maybe add more discussion here?"), DEFAULT_PASSES); puts (_("\nReport bugs to <bug-fileutils@gnu.org>.")); - close_stdout (); } exit (status); } @@ -1715,6 +1714,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + isaac_seed (&s); memset (&flags, 0, sizeof flags); @@ -1813,8 +1814,6 @@ main (int argc, char **argv) /* Just on general principles, wipe s. */ memset (&s, 0, sizeof s); - close_stdout (); - exit (err); } /* |