summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-11-03 11:04:35 -0600
committerDavid Smith <dsmith@redhat.com>2009-11-03 11:04:35 -0600
commit89651893a8ec51ee4d77ddfd57019e350ad7b169 (patch)
tree0b30a1dc7d1f56fb03e085a50c3d11b9f5edc032
parentb49f69f3e23c9fa1cd30725c5405f552b2aceff8 (diff)
downloadsystemtap-steved-89651893a8ec51ee4d77ddfd57019e350ad7b169.tar.gz
systemtap-steved-89651893a8ec51ee4d77ddfd57019e350ad7b169.tar.xz
systemtap-steved-89651893a8ec51ee4d77ddfd57019e350ad7b169.zip
PR 10706 fixed by switching to unbuffered output.
* runtime/staprun/mainloop.c (stp_main_loop): Switched to unbuffered output (instead of line buffered output).
-rw-r--r--runtime/staprun/mainloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c
index 67fbfad6..ab228937 100644
--- a/runtime/staprun/mainloop.c
+++ b/runtime/staprun/mainloop.c
@@ -486,7 +486,7 @@ int stp_main_loop(void)
char recvbuf[8196];
int error_detected = 0;
- setvbuf(ofp, (char *)NULL, _IOLBF, 0);
+ setvbuf(ofp, (char *)NULL, _IONBF, 0);
setup_main_signals();
dbug(2, "in main loop\n");