Small patch to flush stdout after log message is printed. Makes sense
if daemon is not run on the tty, e.g. under daemontools.
Index: src/log.c
===================================================================
RCS file: /home/repo/pmacct/src/log.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 log.c
--- src/log.c 25 Jan 2007 22:57:47 -0000 1.2
+++ src/log.c 31 Mar 2007 03:42:28 -0000
@@ -34,6 +34,7 @@ void Log(short int level, char *msg, ...
va_start(ap, msg);
vprintf(msg, ap);
va_end(ap);
+ fflush(stdout);
}
else {
va_start(ap, msg);
wbr&w, dmitry.
--
Dmitry Frolov <[EMAIL PROTECTED]>
RISS-Telecom Network, Novosibirsk, Russia
[EMAIL PROTECTED], +7 383 2278800, DVF-RIPE
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists