From 676a2fcfdf043cee82a47c8b340671c351e5e75c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 Jan 2019 16:29:51 +0100 Subject: s4:server: avoid using pid=0 for the parent 'samba' process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It confuses the 'samba-tool processes' output and log messages. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13752 Signed-off-by: Stefan Metzmacher Reviewed-by: Björn Baumbach (cherry picked from commit 5bd7a8e5685caa09067745b108ef7e53e3108e97) --- source4/smbd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/smbd') diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 431fbad3139..274a45d600c 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -274,7 +274,7 @@ static NTSTATUS setup_parent_messaging(struct server_state *state, msg = imessaging_init(state->event_ctx, lp_ctx, - cluster_id(0, SAMBA_PARENT_TASKID), + cluster_id(getpid(), SAMBA_PARENT_TASKID), state->event_ctx); NT_STATUS_HAVE_NO_MEMORY(msg); -- cgit v1.2.1