always close stdout
authorJim Meyering <jim@meyering.net>
Sat, 23 Jan 1999 18:15:41 +0000 (18:15 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 23 Jan 1999 18:15:41 +0000 (18:15 +0000)
src/shred.c

index ef515df..f527726 100644 (file)
@@ -1,7 +1,8 @@
 /* TODO:
    x use getopt_long
    x use error, not pferror
-   - don't use pfstatus -- or maybe leave it in and see who complains
+   - don't use pfstatus (at least vprintf isn't portable) -- or maybe
+       leave it in and see who complains
    x bracket strings with _(...) for gettext
    - use consistent non-capitalization in error messages
    - add standard GNU copyleft comment
@@ -1378,5 +1379,7 @@ main (int argc, char **argv)
   /* Just on general principles, wipe s. */
   memset (&s, 0, sizeof (s));
 
+  close_stdout ();
+
   exit (err);
 }