summaryrefslogtreecommitdiff
path: root/src/bin/e_signals.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_signals.c')
-rw-r--r--src/bin/e_signals.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/e_signals.c b/src/bin/e_signals.c
index ea06693c37..00b8b264d5 100644
--- a/src/bin/e_signals.c
+++ b/src/bin/e_signals.c
@@ -2,6 +2,7 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
+#include <execinfo.h>
/* a tricky little devil, requires e and it's libs to be built
* with the -rdynamic flag to GCC for any sort of decent output.
@@ -10,11 +11,9 @@ void e_sigseg_act(int x, siginfo_t *info, void *data){
void *array[255];
size_t size;
- char **strings;
- size_t i;
write(2, "**** SEGMENTATION FAULT ****\n", 29);
write(2, "**** Printing Backtrace... *****\n\n", 34);
- size = backtrace (array, 255);
+ size = backtrace(array, 255);
backtrace_symbols_fd(array, size, 2);
exit(-11);
}