From: Jim Meyering Date: Sun, 7 May 2000 14:41:19 +0000 (+0000) Subject: Include "closeout.h". X-Git-Tag: SH-UTILS-2_0h~24 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e1133c7a286f40a04a12da1be68728f388cc53b5;p=thirdparty%2Fcoreutils.git Include "closeout.h". (usage): Call close_stdout just before exit. --- diff --git a/src/yes.c b/src/yes.c index 276965bab9..33ca609c09 100644 --- 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 .")); } + close_stdout (); exit (status); }