Commit 827572e1 authored by Mark Andrews's avatar Mark Andrews

2310 [bug] Flush stdout before emitting debug/fatal messages.

                        [RT #17501]
parent b0b4ba75
2310 [bug] Flush stdout before emitting debug/fatal messages.
[RT #17501]
2309. [cleanup] Fix Coverity warnings in lib/dns/acl.c and iptable.c.
[RT #17455]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dighost.c,v 1.306 2008/01/14 23:46:56 tbox Exp $ */
/* $Id: dighost.c,v 1.307 2008/01/17 21:46:33 marka Exp $ */
/*! \file
* \note
......@@ -493,6 +493,7 @@ void
fatal(const char *format, ...) {
va_list args;
fflush(stdout);
fprintf(stderr, "%s: ", progname);
va_start(args, format);
vfprintf(stderr, format, args);
......@@ -510,6 +511,7 @@ debug(const char *format, ...) {
va_list args;
if (debugging) {
fflush(stdout);
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment