test/report error writing to stdout
authorOliver Kiddle <okiddle@yahoo.co.uk>
Wed, 18 May 2005 13:27:44 +0000 (13:27 +0000)
committerOliver Kiddle <okiddle@yahoo.co.uk>
Wed, 18 May 2005 13:27:44 +0000 (13:27 +0000)
ChangeLog
uip/mhlsbr.c
uip/replsbr.c

index e534e070aca5792c4a6660d2f6a7a54272aa5a31..ff47800bf4896e90e567531a221ab9aa6185b86f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-05-18  Oliver Kiddle  <okiddle@yahoo.co.uk>
 
+       * 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
index d707ed15d15d2e81d52649d71fdfe880456f7e45..c310e2a075da5cef080664040361355f402caf87 100644 (file)
@@ -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 ();
 
index a7616d353f269b4ae25cbde0bd18286c675d34c7..4b2b30d56c710fdc9a14c4d8aaf09498af63e373 100644 (file)
@@ -253,6 +253,7 @@ finished:
                     mp->foldpath, m_name (mp->lowsel));
     }
 
+    fflush(out);
     if (ferror (out))
        adios (drft, "error writing");
     fclose (out);