diff options
author | Ralph Boehme <slow@samba.org> | 2016-07-05 15:38:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2016-07-11 02:02:31 +0200 |
commit | 6efd0af5e8d8ee81b5f53afb126d87950088b7cd (patch) | |
tree | d4cc9d12879d1bc2967b0daf2f9452c2b4858e17 /source3/rpc_server | |
parent | bb90a8484a734b76ddd4d270f31fcdb4ae6cc48d (diff) | |
download | samba-6efd0af5e8d8ee81b5f53afb126d87950088b7cd.tar.gz |
s3-rpc_server/mdssd: 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>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jul 11 02:02:33 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/mdssd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/mdssd.c b/source3/rpc_server/mdssd.c index e4c12cdea46..daff5f02e67 100644 --- a/source3/rpc_server/mdssd.c +++ b/source3/rpc_server/mdssd.c @@ -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"); |