summaryrefslogtreecommitdiff
path: root/source3/rpc_server/mdssd.c
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2015-09-23 11:14:05 -0700
committerAndreas Schneider <asn@cryptomilk.org>2015-09-24 08:00:16 +0200
commit96c48b3c06034a64ee4fb90650dfd5a1059fe83a (patch)
tree6ec78b4e3bc7ff3fcc9f02a2df6f92ed94f97eef /source3/rpc_server/mdssd.c
parent6788a5f4491cccf5fbe0749d0d1542531e641fc3 (diff)
downloadsamba-96c48b3c06034a64ee4fb90650dfd5a1059fe83a.tar.gz
s3: Move call to prctl_set_comment to reinit_after_fork
This save a few lines of code. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/rpc_server/mdssd.c')
-rw-r--r--source3/rpc_server/mdssd.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/rpc_server/mdssd.c b/source3/rpc_server/mdssd.c
index fac386bd9f6..f76d13eda33 100644
--- a/source3/rpc_server/mdssd.c
+++ b/source3/rpc_server/mdssd.c
@@ -24,8 +24,6 @@
#include "messages.h"
#include "ntdomain.h"
-#include "lib/util/util_process.h"
-
#include "lib/id_cache.h"
#include "../lib/tsocket/tsocket.h"
@@ -206,14 +204,12 @@ static bool mdssd_child_init(struct tevent_context *ev_ctx,
bool ok;
status = reinit_after_fork(msg_ctx, ev_ctx,
- true);
+ true, "mdssd-child");
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("reinit_after_fork() failed\n"));
smb_panic("reinit_after_fork() failed");
}
- prctl_set_comment("mdssd-child");
-
mdssd_child_id = child_id;
reopen_logs();
@@ -671,15 +667,12 @@ void start_mdssd(struct tevent_context *ev_ctx,
return;
}
- status = reinit_after_fork(msg_ctx,
- ev_ctx,
- true);
+ status = reinit_after_fork(msg_ctx, ev_ctx, true, "mdssd-master");
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("reinit_after_fork() failed\n"));
smb_panic("reinit_after_fork() failed");
}
- prctl_set_comment("mdssd-master");
reopen_logs();
/* save the parent process id so the children can use it later */