git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0c1da
)
s4:server: avoid using pid=0 for the parent 'samba' process
author
Stefan Metzmacher
<metze@samba.org>
Mon, 28 Jan 2019 15:29:51 +0000
(16:29 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 29 Jan 2019 21:09:08 +0000
(22:09 +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>
source4/smbd/server.c
patch
|
blob
|
history
diff --git
a/source4/smbd/server.c
b/source4/smbd/server.c
index 626123bc9b088d45acdbcd486c64ea8ed00b011c..5463f772a1b606d3cb081453ba280fe7e8c85fe8 100644
(file)
--- 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);