summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2013-03-26 20:17:11 -0700
committerJeremy Allison <jra@samba.org>2013-03-27 22:58:36 +0100
commit40d783c397ea21d03d1ea7130a438dd8c0d817f1 (patch)
tree9da6119d6660e5440dc8715260ceb86abba337e0 /source3
parent1dcd75df4941d7032a66d3fbb86ac76964444a3f (diff)
downloadsamba-40d783c397ea21d03d1ea7130a438dd8c0d817f1.tar.gz
samba-40d783c397ea21d03d1ea7130a438dd8c0d817f1.tar.bz2
samba-40d783c397ea21d03d1ea7130a438dd8c0d817f1.zip
Call smb_panic when we try to exit the server uncleanly. This gives us the normal traceback and memory dump, but also runs the normal panic action.
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Mar 27 22:58:37 CET 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server_exit.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c
index fa28374ba0..dfa2b1dacb 100644
--- a/source3/smbd/server_exit.c
+++ b/source3/smbd/server_exit.c
@@ -202,14 +202,8 @@ static void exit_server_common(enum server_exit_reason how,
printing_end();
if (how != SERVER_EXIT_NORMAL) {
- DEBUGSEP(0);
- DEBUG(0,("Abnormal server exit: %s\n",
- reason ? reason : "no explanation provided"));
- DEBUGSEP(0);
- log_stack_trace();
-
- dump_core();
+ smb_panic(reason);
/* Notreached. */
exit(1);