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: samba-4.8.9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=676a2fcfdf043cee82a47c8b340671c351e5e75c;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 (cherry picked from commit 5bd7a8e5685caa09067745b108ef7e53e3108e97) --- 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);