summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-23 18:15:41 +0000
committerJim Meyering <jim@meyering.net>1999-01-23 18:15:41 +0000
commit4ab3a8a3451a75185dd83dd94849963d1a98ba6d (patch)
tree2865aac60746beace97995abdcf6241b395f2a3f /src
parent35c2b35dbd471047001c240e0c20593d085f4612 (diff)
downloadcoreutils-4ab3a8a3451a75185dd83dd94849963d1a98ba6d.tar.xz
always close stdout
Diffstat (limited to 'src')
-rw-r--r--src/shred.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c
index ef515df5b..f5277268a 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -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);
}