[PATCH] lib: Print own pid in messaging_init
Volker Lendecke
vl at samba.org
Thu Jul 14 13:00:04 UTC 2016
Hi!
Review appreciated!
Thanks, Volker
-------------- next part --------------
>From 426666ba6562946f039191438fac45225f29cebf Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 18 Apr 2016 16:40:22 +0200
Subject: [PATCH] lib: Print own pid in messaging_init
This turned out to be some valuable debugging aid for me
Signed-off-by: Volker Lendecke <vl at samba.org>
---
source3/lib/messages.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 58878ad..c6ca19a 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -387,6 +387,11 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
register_dmalloc_msgs(ctx);
debug_register_msgs(ctx);
+ {
+ struct server_id_buf tmp;
+ DBG_DEBUG("my id: %s\n", server_id_str_buf(ctx->id, &tmp));
+ }
+
return ctx;
}
--
1.9.1
More information about the samba-technical
mailing list