s4: server: Add a tevent signal handler for SIGTERM.
authorJeremy Allison <jra@samba.org>
Fri, 31 Mar 2017 19:38:14 +0000 (12:38 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 17 Apr 2017 17:13:07 +0000 (19:13 +0200)
commit5fe996bc1f0b80e8e68c6fd558222e42b5916b9a
tree4d2e7a058c08be8a6878a35e596d35e904c8e824
parent139793ce06ed5611d3eb37fc09f974265289ec55
s4: server: Add a tevent signal handler for SIGTERM.

Simplify by removing global state we don't need now
we're called by tevent (and in the short window where
we're installed by CatchSignal but before we install
the tevent handler we don't need the complex global
state handling as we have no forked children).

We now have access to struct server_state on all
exit paths - next commits will stop using talloc autofree context.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/smbd/server.c