A bit more flushing of stdout, so that "valgrind-listener | tee logfile"
isn't so mysterious.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1321 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/auxprogs/valgrind-listener.c b/auxprogs/valgrind-listener.c
index 13d7702..0f6674e 100644
--- a/auxprogs/valgrind-listener.c
+++ b/auxprogs/valgrind-listener.c
@@ -210,6 +210,7 @@
time_t t;
t = time(NULL);
printf("valgrind-listener %s at %s", str, ctime(&t));
+ fflush(stdout);
}
@@ -370,6 +371,7 @@
fflush(stdout);
if (conn_count == 0 && exit_when_zero) {
printf("\n");
+ fflush(stdout);
exit_routine();
}
}