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>
int parent_watch_fd(void);
NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx,
struct tevent_context *ev_ctx,
- bool parent_longlived,
- const char *comment);
+ bool parent_longlived);
NTSTATUS smbd_reinit_after_fork(struct messaging_context *msg_ctx,
struct tevent_context *ev_ctx,
bool parent_longlived);
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 {
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;
}
}
- if (comment) {
- prctl_set_comment("%s", comment);
- }
-
done:
return status;
}
CatchSignal(SIGHUP, SIG_IGN);
CatchSignal(SIGTERM, sig_term);
- status = reinit_after_fork(msg, nmbd_event_context(), true, NULL);
+ status = reinit_after_fork(msg, nmbd_event_context(), true);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("reinit_after_fork() failed\n"));
pidfile_create(lp_pid_directory(), "nmbd");
- status = reinit_after_fork(msg, nmbd_event_context(), false, NULL);
+ status = reinit_after_fork(msg, nmbd_event_context(), false);
if (!NT_STATUS_IS_OK(status)) {
exit_daemon("reinit_after_fork() failed", map_errno_from_nt_status(status));
close_all_print_db();
- status = reinit_after_fork(msg_ctx, ev, true, NULL);
+ status = reinit_after_fork(msg_ctx, ev, true);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n"));
smb_panic("cups_pcap_load_async: reinit_after_fork() failed");
cmdline_daemon_cfg->no_process_group,
log_stdout);
- status = reinit_after_fork(msg_ctx, ev_ctx, false, NULL);
+ status = reinit_after_fork(msg_ctx, ev_ctx, false);
if (!NT_STATUS_IS_OK(status)) {
exit_daemon("reinit_after_fork() failed",
map_errno_from_nt_status(status));
smb_set_close_on_exec(fd);
if (s->parent->interactive) {
- reinit_after_fork(msg_ctx, ev, true, NULL);
+ reinit_after_fork(msg_ctx, ev, true);
smbd_process(ev, msg_ctx, fd, true);
exit_server_cleanly("end of interactive mode");
return;
if (cmdline_daemon_cfg->daemon)
pidfile_create(lp_pid_directory(), "smbd");
- status = reinit_after_fork(msg_ctx, ev_ctx, false, NULL);
+ status = reinit_after_fork(msg_ctx, ev_ctx, false);
if (!NT_STATUS_IS_OK(status)) {
exit_daemon("reinit_after_fork() failed", map_errno_from_nt_status(status));
}
{
NTSTATUS ret;
am_parent = NULL;
- ret = reinit_after_fork(msg_ctx, ev_ctx, parent_longlived, NULL);
+ ret = reinit_after_fork(msg_ctx, ev_ctx, parent_longlived);
initialize_password_db(true, ev_ctx);
return ret;
}
if (child == 0) {
TALLOC_FREE(ctx);
- status = reinit_after_fork(msg, ev, false, "");
+ status = reinit_after_fork(msg, ev, false);
close(ready_pipe[0]);
close(exit_pipe[1]);
if (child == 0) {
TALLOC_FREE(ctx);
- status = reinit_after_fork(msg, ev, false, "");
+ status = reinit_after_fork(msg, ev, false);
if (!NT_STATUS_IS_OK(status)) {
fprintf(stderr, "reinit_after_fork failed: %s\n",
nt_errstr(status));
close(down_pipe[1]);
down_pipe[1] = -1;
- status = reinit_after_fork(msg, ev, false, "");
+ status = reinit_after_fork(msg, ev, false);
if (!NT_STATUS_IS_OK(status)) {
fprintf(stderr,
"reinit_after_fork failed: %s\n",
status = reinit_after_fork(global_messaging_context(),
global_event_context(),
- false, NULL);
+ false);
if (!NT_STATUS_IS_OK(status)) {
exit_daemon("Winbindd reinit_after_fork() failed", map_errno_from_nt_status(status));
}
status = reinit_after_fork(
global_messaging_context(),
global_event_context(),
- true, NULL);
+ true);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("reinit_after_fork() failed\n"));
return status;