Skip to content

Commit 49cf5bc

Browse files
committed
MB-47145: Only install signal handler on x86
The signal handler code in forestDB is x86-specific. Don't install it on non-x86 architectures; relying on whatever higher-level signal handlers the application has (Breakpad etc). Change-Id: I0b9c5f15f898ab636802b833f9f5e1f1012cf4da Reviewed-on: http://review.couchbase.org/c/forestdb/+/156528 Reviewed-by: Chris Hillery <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 1d5cc64 commit 49cf5bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/debug.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ static void _dbg_hang_process(void)
6969

7070
// to profile first install perf
7171
// echo 0 > /proc/sys/kernel/kptr_restrict
72-
#if defined(__linux__) && !defined(__ANDROID__)
72+
#if defined(__linux__) && !defined(__ANDROID__) && \
73+
(defined(__i386__) || defined(__x86_64__))
7374
#include <string.h>
7475
#include <dlfcn.h>
7576
#include <ucontext.h>

0 commit comments

Comments
 (0)