summaryrefslogtreecommitdiff
path: root/source4/lib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/debug.c')
-rw-r--r--source4/lib/debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/debug.c b/source4/lib/debug.c
index 792cf14c5a..dbd3946c81 100644
--- a/source4/lib/debug.c
+++ b/source4/lib/debug.c
@@ -57,6 +57,8 @@ void do_debug(const char *format, ...)
vasprintf(&s, format, ap);
va_end(ap);
+ log_task_id();
+
write(state.fd, s, strlen(s));
free(s);
}
@@ -147,6 +149,12 @@ uint32 get_task_id(void)
return getpid();
}
+void log_task_id(void)
+{
+ if (debug_handlers.ops.log_task_id) {
+ debug_handlers.ops.log_task_id(state.fd);
+ }
+}
/*
register a set of debug handlers.
*/