git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57d4be5
)
merge:
author
Stefan Metzmacher
<metze@samba.org>
Thu, 22 Jan 2004 01:53:04 +0000
(
01:53
+0000)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 22 Jan 2004 01:53:04 +0000
(
01:53
+0000)
* Add SIGABRT to fault handling
so we now got a backtrace, if we crash
in libldap with SIGABRT
metze
(This used to be commit
7f7b86e4b3815b112fe6881af6c261381f35286f
)
source3/lib/fault.c
patch
|
blob
|
history
diff --git
a/source3/lib/fault.c
b/source3/lib/fault.c
index df7830ef83b4b1f310a10a22fbee8428a505a9c7..d8364ff22571d396c510437d4cd45afd0ed4b6ed 100644
(file)
--- a/
source3/lib/fault.c
+++ b/
source3/lib/fault.c
@@
-47,6
+47,9
@@
static void fault_report(int sig)
#endif
#ifdef SIGBUS
CatchSignal(SIGBUS,SIGNAL_CAST SIG_DFL);
+#endif
+#ifdef SIGABRT
+ CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL);
#endif
return; /* this should cause a core dump */
}
@@
-74,7
+77,7
@@
void fault_setup(void (*fn)(void *))
#ifdef SIGBUS
CatchSignal(SIGBUS,SIGNAL_CAST sig_fault);
#endif
+#ifdef SIGABRT
+ CatchSignal(SIGABRT,SIGNAL_CAST sig_fault);
+#endif
}
-
-
-