From 31d4900d02d6be96308736ddc262ec4cdbd72c7c Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 18 May 2005 13:27:44 +0000 Subject: [PATCH] test/report error writing to stdout --- ChangeLog | 3 +++ uip/mhlsbr.c | 5 +++++ uip/replsbr.c | 1 + 3 files changed, 9 insertions(+) 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); -- 1.7.10.4