From: Stefan Metzmacher Date: Mon, 28 Jan 2019 15:29:51 +0000 (+0100) Subject: s4:server: avoid using pid=0 for the parent 'samba' process X-Git-Tag: ldb-1.6.1~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd7a8e5685caa09067745b108ef7e53e3108e97;p=thirdparty%2Fsamba.git s4:server: avoid using pid=0 for the parent 'samba' process 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 --- diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 626123bc9b0..5463f772a1b 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -316,7 +316,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);