summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2022-12-03 17:04:33 +0100
committerJeremy Allison <jra@samba.org>2022-12-14 01:38:29 +0000
commitfc57b88e6a93d59ad243364a513d33cecf66e4ab (patch)
treeb2a120d19c33aca6f846e130dd42639b5a7b4606 /source3/lib
parent38ba7d1476c1bdb5bbde70c45b47d12ab1699516 (diff)
downloadsamba-fc57b88e6a93d59ad243364a513d33cecf66e4ab.tar.gz
smbd: remove process shortname arg from reinit_after_fork()
All callers pass NULL anyway, so it isn't used anymore. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/background.c2
-rw-r--r--source3/lib/util.c7
2 files changed, 2 insertions, 7 deletions
diff --git a/source3/lib/background.c b/source3/lib/background.c
index 74f7496d4f6..cf6cc3abaa0 100644
--- a/source3/lib/background.c
+++ b/source3/lib/background.c
@@ -176,7 +176,7 @@ static void background_job_waited(struct tevent_req *subreq)
close(fds[0]);
- status = reinit_after_fork(state->msg, state->ev, true, NULL);
+ status = reinit_after_fork(state->msg, state->ev, true);
if (NT_STATUS_IS_OK(status)) {
res = state->fn(state->private_data);
} else {
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 912ce1d3004..eef76662f45 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -429,8 +429,7 @@ static void reinit_after_fork_pipe_handler(struct tevent_context *ev,
NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx,
struct tevent_context *ev_ctx,
- bool parent_longlived,
- const char *comment)
+ bool parent_longlived)
{
NTSTATUS status = NT_STATUS_OK;
int ret;
@@ -503,10 +502,6 @@ NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx,
}
}
- if (comment) {
- prctl_set_comment("%s", comment);
- }
-
done:
return status;
}