smbd/notifyd: use smbd_reinit_after_fork()
authorRalph Boehme <slow@samba.org>
Tue, 5 Jul 2016 13:37:53 +0000 (15:37 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 10 Jul 2016 20:28:13 +0000 (22:28 +0200)
commitbb90a8484a734b76ddd4d270f31fcdb4ae6cc48d
tree2b4c191b2bd33415770fddae855c1d46e6f73163
parent3a0c16b08c7dcfe389fbc429aae734ff52c84166
smbd/notifyd: 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>
source3/smbd/server.c