summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-05-18 17:56:42 +0000
committerhunt <hunt>2006-05-18 17:56:42 +0000
commit1e6f6015ab7a5918fc3a84bbeef34876169f1ff9 (patch)
tree58cd4980dca493338a3f9f6ad8fc5f9285cc7bf1 /runtime/stpd/librelay.c
parent739aa6f5209c3756d42de8380107f49891044bd8 (diff)
downloadsystemtap-steved-1e6f6015ab7a5918fc3a84bbeef34876169f1ff9.tar.gz
systemtap-steved-1e6f6015ab7a5918fc3a84bbeef34876169f1ff9.tar.xz
systemtap-steved-1e6f6015ab7a5918fc3a84bbeef34876169f1ff9.zip
2006-05-18 Martin Hunt <hunt@redhat.com>
* librelay.c (stp_main_loop): Set output to always be line buffered.
Diffstat (limited to 'runtime/stpd/librelay.c')
-rw-r--r--runtime/stpd/librelay.c1
1 files changed, 1 insertions, 0 deletions
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);