From 2af136ce5a822e0b995bb8dd055092f842693d57 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 30 Jul 2018 15:54:29 +0300 Subject: libc: Handle THREAD_SIGNAL correctly --- src/libc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/libc.c b/src/libc.c index 7d24275..9bc9b8f 100644 --- a/src/libc.c +++ b/src/libc.c @@ -202,6 +202,10 @@ bionic_sigaction(int sig, const struct bionic_sigaction *restrict act, struct bi { verbose("%d, %p, %p", sig, (void*)act, (void*)oact); + // THREAD_SIGNAL on android used by libbacktrace + if (sig == 33) + sig = SIGRTMIN; + struct sigaction goact = {0}, gact = {0}; if (act) { gact.sa_handler = act->bsa_handler; -- cgit v1.2.3-70-g09d2