The exit server routines already call rpc shutdown functions
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
void *siginfo,
void *private_data)
{
- rpc_netlogon_shutdown();
- rpc_samr_shutdown();
- rpc_lsarpc_shutdown();
-
- DEBUG(0, ("termination signal\n"));
- exit(0);
+ exit_server_cleanly("termination signal");
}
static void lsasd_setup_sig_term_handler(struct tevent_context *ev_ctx)
lsasd_sig_term_handler,
NULL);
if (!se) {
- DEBUG(0, ("failed to setup SIGTERM handler\n"));
- exit(1);
+ exit_server("failed to setup SIGTERM handler");
}
}