mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
smbd/cleanupd: use smbd_reinit_after_fork()
Using smbd_reinit_after_fork() rather then reinit_after_fork() ensures am_parent is reset to NULL. Otherwise, when exiting for some reason, the inherited atexit handler killkids() calls kill(0,SIGTERM) terminating our whole process group including the main smbd. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12016 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
89e67e309a
commit
3a0c16b08c
@ -478,7 +478,7 @@ static bool cleanupd_init(struct messaging_context *msg, bool interactive,
|
||||
|
||||
close(up_pipe[0]);
|
||||
|
||||
status = reinit_after_fork(msg, ev, true, "cleanupd");
|
||||
status = smbd_reinit_after_fork(msg, ev, true, "cleanupd");
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DBG_WARNING("reinit_after_fork failed: %s\n",
|
||||
nt_errstr(status));
|
||||
|
Loading…
x
Reference in New Issue
Block a user