From 8a1c7a0a660d78786adac483ecafa157c3a3dc2e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 9 Oct 2012 08:35:04 -0400 Subject: s3:smbd: add exit_server to the smbd_shim hooks This is in preparation of moving sessionid_tdb and conn_tdb to smbd exclusively. metze Signed-off-by: Michael Adam --- source3/lib/smbd_shim.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/lib/smbd_shim.c') diff --git a/source3/lib/smbd_shim.c b/source3/lib/smbd_shim.c index 78a101c2a7..d5ad577975 100644 --- a/source3/lib/smbd_shim.c +++ b/source3/lib/smbd_shim.c @@ -98,3 +98,19 @@ void unbecome_root(void) } return; } + +void exit_server(const char *reason) +{ + if (shim.exit_server) { + shim.exit_server(reason); + } + exit(1); +} + +void exit_server_cleanly(const char *const reason) +{ + if (shim.exit_server_cleanly) { + shim.exit_server_cleanly(reason); + } + exit(0); +} -- cgit