]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include "closeout.h".
authorJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:41:19 +0000 (14:41 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:41:19 +0000 (14:41 +0000)
(usage): Call close_stdout just before exit.

src/yes.c

index 276965bab95e492587e48025fb14ffabe59c4d9d..33ca609c09e3e4e53c50f8b119ca3673fd4cc8fe 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -25,6 +25,7 @@
 #include "error.h"
 #include "system.h"
 #include "long-options.h"
+#include "closeout.h"
 
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "yes"
@@ -53,6 +54,7 @@ Repeatedly output a line with all specified STRING(s), or `y'.\n\
   --version   output version information and exit\n"));
       puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
     }
+  close_stdout ();
   exit (status);
 }