From 1e6f6015ab7a5918fc3a84bbeef34876169f1ff9 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 18 May 2006 17:56:42 +0000 Subject: 2006-05-18 Martin Hunt * librelay.c (stp_main_loop): Set output to always be line buffered. --- runtime/stpd/librelay.c | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/stpd/librelay.c') 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); -- cgit