Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/framework/trace.c')
-rw-r--r--agent/tcf/framework/trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/tcf/framework/trace.c b/agent/tcf/framework/trace.c
index 681f28a1..f652837c 100644
--- a/agent/tcf/framework/trace.c
+++ b/agent/tcf/framework/trace.c
@@ -60,6 +60,7 @@ static pthread_mutex_t mutex;
int print_trace(int mode, const char * fmt, ...) {
va_list ap;
+ int error = errno;
if (log_file == NULL) return 0;
if (mode != LOG_ALWAYS && (log_mode & mode) == 0) return 0;
@@ -100,6 +101,7 @@ int print_trace(int mode, const char * fmt, ...) {
}
}
va_end(ap);
+ errno = error;
return 1;
}

Back to the top