Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/filesystems/e2fsprogs-core/files/extrapatch-e2fsck_sigcatcher.c
18160 views
1
--- e2fsck/sigcatcher.c.orig 2020-01-06 23:10:17 UTC
2
+++ e2fsck/sigcatcher.c
3
@@ -17,6 +17,7 @@
4
#ifdef HAVE_EXECINFO_H
5
#include <execinfo.h>
6
#endif
7
+#include <libunwind.h>
8
9
#include "e2fsck.h"
10
11
@@ -376,7 +377,7 @@ static void die_signal_handler(int signum, siginfo_t *
12
void *stack_syms[32];
13
int frames;
14
15
- frames = backtrace(stack_syms, 32);
16
+ frames = unw_backtrace(stack_syms, 32);
17
backtrace_symbols_fd(stack_syms, frames, 2);
18
}
19
#endif
20
21