]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-rpc_server/mdssd: use smbd_reinit_after_fork()
authorRalph Boehme <slow@samba.org>
Tue, 5 Jul 2016 13:38:31 +0000 (15:38 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 11 Jul 2016 00:02:31 +0000 (02:02 +0200)
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>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jul 11 02:02:33 CEST 2016 on sn-devel-144

source3/rpc_server/mdssd.c

index e4c12cdea4676c135171ec38ee685b01075ca5ae..daff5f02e67186be6cdb11535f2c5582b910bd54 100644 (file)
@@ -645,7 +645,7 @@ void start_mdssd(struct tevent_context *ev_ctx,
                return;
        }
 
-       status = reinit_after_fork(msg_ctx, ev_ctx, true, "mdssd-master");
+       status = smbd_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");