summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/stpd/ChangeLog5
-rw-r--r--runtime/stpd/librelay.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog
index 21f8f2c9..d2f4efae 100644
--- a/runtime/stpd/ChangeLog
+++ b/runtime/stpd/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-18 Martin Hunt <hunt@redhat.com>
+
+ * librelay.c (stp_main_loop): Set output to always be line
+ buffered.
+
2006-04-08 Martin Hunt <hunt@redhat.com>
* librelay.c (stp_main_loop): Write with fwrite() instead
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c
index 47cb8bd6..32ac5415 100644
--- a/runtime/stpd/librelay.c
+++ b/runtime/stpd/librelay.c
@@ -722,6 +722,7 @@ int stp_main_loop(void)
int type;
FILE *ofp = stdout;
+ setvbuf(ofp, (char *)NULL, _IOLBF, 0);
pthread_mutex_init(&processing_mutex, NULL);
signal(SIGINT, sigproc);