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)
commit6efd0af5e8d8ee81b5f53afb126d87950088b7cd
treed4cc9d12879d1bc2967b0daf2f9452c2b4858e17
parentbb90a8484a734b76ddd4d270f31fcdb4ae6cc48d
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
source3/rpc_server/mdssd.c