From: Oliver Kiddle Date: Wed, 18 May 2005 13:27:44 +0000 (+0000) Subject: test/report error writing to stdout X-Git-Tag: RELEASE_1_2~38 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=31d4900d02d6be96308736ddc262ec4cdbd72c7c;p=mmh test/report error writing to stdout --- diff --git a/ChangeLog b/ChangeLog index e534e07..ff47800 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-05-18 Oliver Kiddle + * Debian Bug# 261592: Harald Geyer: uip/mhlsbr.c, uip/replsbr.c: + test/report error writing to stdout + * mts/smtp/smtp.c, uip/popsbr.c: correct SASL include file locations * docs/COMPLETION-BASH: bash completion definitions from Debian diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index d707ed1..c310e2a 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -480,6 +480,11 @@ mhl (int argc, char **argv) vecp > 1 ? "s" : ""); } + fflush(stdout); + if(ferror(stdout)){ + adios("output", "error writing"); + } + if (clearflg > 0 && ontty == NOTTY) clear_screen (); diff --git a/uip/replsbr.c b/uip/replsbr.c index a7616d3..4b2b30d 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -253,6 +253,7 @@ finished: mp->foldpath, m_name (mp->lowsel)); } + fflush(out); if (ferror (out)) adios (drft, "error writing"); fclose (out);