s4:server: avoid using pid=0 for the parent 'samba' process
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Jan 2019 15:29:51 +0000 (16:29 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Feb 2019 14:33:29 +0000 (15:33 +0100)
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 <metze@samba.org>
Reviewed-by: Björn Baumbach <bbaumbach@samba.org>
(cherry picked from commit 5bd7a8e5685caa09067745b108ef7e53e3108e97)

source4/smbd/server.c

index 5eca0b9e869b4fe1e49b88e4d7608209f94168a2..645705136d52d4ea64e36a5f2aeefed3c15743bb 100644 (file)
@@ -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);