s4-smbd: Also restart prefork children lost to SIGKILL (-9)
authorAndrew Bartlett <abartlet@samba.org>
Wed, 18 Dec 2019 22:20:30 +0000 (11:20 +1300)
committerRalph Boehme <slow@samba.org>
Fri, 20 Dec 2019 10:09:34 +0000 (10:09 +0000)
commit30cbc5b90e4951a0ea924c204ff73e15c9750ace
treebd91ec99390e73f007d882771538d09b0af3a596
parentb28d1dca86d33efac9d03b35c5c9804e02ddfb9a
s4-smbd: Also restart prefork children lost to SIGKILL (-9)

Samba 4.10 and later versions have a process restart capability to greatly
reduce the impact of crashes due to a NULL pointer de-reference or abort().

However SIGKILL was deliberatly omitted.

Sadly this is the most likely case, due to the OOM killer, as raised here:

https://lists.samba.org/archive/samba-technical/2019-November/134529.html

Subsequent discussion (offline) has been to agree that we should restart in
this case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14221

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/smbd/process_prefork.c