smbd/notifyd: use smbd_reinit_after_fork()
commit234dec52493a4932afb4968136f3240c2bcdbfae
authorRalph Boehme <slow@samba.org>
Tue, 5 Jul 2016 13:37:53 +0000 (5 15:37 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Aug 2016 09:10:20 +0000 (4 11:10 +0200)
tree0903a99cc04be734398a4ca9cfa80d0854f00844
parent7f7e9d737d332da6bac6105cec688948f52aa484
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>
(cherry picked from commit bb90a8484a734b76ddd4d270f31fcdb4ae6cc48d)
source3/smbd/server.c