From: Jim Meyering Date: Sat, 23 Jan 1999 18:15:41 +0000 (+0000) Subject: always close stdout X-Git-Tag: TEXTUTILS-1_22h~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ab3a8a3451a75185dd83dd94849963d1a98ba6d;p=thirdparty%2Fcoreutils.git always close stdout --- diff --git a/src/shred.c b/src/shred.c index ef515df5be..f5277268ae 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); }