Call smb_panic when we try to exit the server uncleanly. This gives us the normal...
[mat/samba.git] / 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);