source4 smbd process: pass the fatal flag to terminate
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 3 Sep 2018 22:09:38 +0000 (10:09 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Nov 2018 07:25:19 +0000 (08:25 +0100)
commit3315a28ea92438eca499fb87b863cbd2db50a6a6
treeba5a6ef1c0df4b1b77fa1d5ab39e21e6cd198257
parentd4641c8f76b7764f81ce246d2a2b8103593d0dac
source4 smbd process: pass the fatal flag to terminate

Pass the fatal flag supplied to task_server_terminate to the process
task_terminate method.  It will be used by the task_terminate methods to
set an appropriate exit code.  The process_prefork model will use a non
zero exit code to indicate that the process should be restarted.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/smbd/process_model.h
source4/smbd/process_prefork.c
source4/smbd/process_single.c
source4/smbd/process_standard.c
source4/smbd/service_stream.c
source4/smbd/service_task.c