git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85dc9ee
)
lib/util: Log PANIC before calling pacic action just like s3
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 10 Apr 2018 04:06:12 +0000
(16:06 +1200)
committer
Jeremy Allison
<jra@samba.org>
Tue, 10 Apr 2018 23:06:39 +0000
(
01:06
+0200)
This is like the changes made in s3 by
4fa555980070d78b39711ef21d77628d26055bc2
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/fault.c
patch
|
blob
|
history
diff --git
a/lib/util/fault.c
b/lib/util/fault.c
index 54d847117423df8279a68f4335bd972c513d4571..fef82a3fcf7be47f2e7b076e1eddac1f3675794b 100644
(file)
--- 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);