Call smb_panic when we try to exit the server uncleanly. This gives us the normal...
authorRichard Sharpe <realrichardsharpe@gmail.com>
Wed, 27 Mar 2013 03:17:11 +0000 (20:17 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 27 Mar 2013 21:58:36 +0000 (22:58 +0100)
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

source3/smbd/server_exit.c

index fa28374ba05011348ea1bbc69334ba8c5414d79c..dfa2b1dacb07033457d75d72e5161284b11aec21 100644 (file)
@@ -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);