aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 11a60aba..4b92598c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -133,6 +133,7 @@ void
trace(const char *fmt, ...)
{
if (do_trace) {
+ int bval = 0;
va_list ap;
if (!mf_trace_stream)
@@ -140,7 +141,15 @@ trace(const char *fmt, ...)
va_start(ap, fmt);
mu_stream_vprintf(mf_trace_stream, fmt, ap);
- mu_stream_flush(mf_trace_stream);
+ bval = 1;
+ mu_stream_ioctl(mf_trace_stream, MU_IOCTL_FILTER,
+ MU_IOCTL_FILTER_SET_DISABLED,
+ &bval);
+ mu_stream_write(mf_trace_stream, "\n", 1, NULL);
+ bval = 0;
+ mu_stream_ioctl(mf_trace_stream, MU_IOCTL_FILTER,
+ MU_IOCTL_FILTER_SET_DISABLED,
+ &bval);
va_end(ap);
}
}

Return to:

Send suggestions and report system problems to the System administrator.