summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/fault.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/fault.c b/lib/util/fault.c
index 54d84711742..fef82a3fcf7 100644
--- a/lib/util/fault.c
+++ b/lib/util/fault.c
@@ -123,6 +123,9 @@ _PUBLIC_ const char *panic_action = NULL;
static void smb_panic_default(const char *why) _NORETURN_;
static void smb_panic_default(const char *why)
{
+ DBG_ERR("PANIC (pid %llu): %s\n",
+ (unsigned long long)getpid(), why);
+
#if defined(HAVE_PRCTL) && defined(PR_SET_PTRACER)
/*
* Make sure all children can attach a debugger.
@@ -148,7 +151,6 @@ static void smb_panic_default(const char *why)
WEXITSTATUS(result)));
}
}
- DEBUG(0,("PANIC: %s\n", why));
#ifdef SIGABRT
CatchSignal(SIGABRT, SIG_DFL);