]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report write error. [RT #19360]
authorMark Andrews <marka@isc.org>
Mon, 2 Mar 2009 02:37:30 +0000 (02:37 +0000)
committerMark Andrews <marka@isc.org>
Mon, 2 Mar 2009 02:37:30 +0000 (02:37 +0000)
bin/tests/cfg_test.c

index 77c9712ca4fac4e19f9b8c742e1ad65aecdc08c8..83d822ea00774ca85f782dd889a75930d5d089e4 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: cfg_test.c,v 1.19 2007/06/19 23:46:59 tbox Exp $ */
+/* $Id: cfg_test.c,v 1.19.332.1 2009/03/02 02:37:30 marka Exp $ */
 
 /*! \file */
 
@@ -147,5 +147,10 @@ main(int argc, char **argv) {
                isc_mem_stats(mctx, stderr);
        isc_mem_destroy(&mctx);
 
-       return (0);
+       fflush(stdout);
+       if (ferror(stdout)) {
+               fprintf(stderr, "write error\n");
+               return (1);
+       } else
+               return (0);
 }