summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-07-30 15:54:29 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-07-30 15:54:29 +0300
commit2af136ce5a822e0b995bb8dd055092f842693d57 (patch)
tree8042da98cfc2588b309965240529ebe963a8e39a /src
parent507dcc03f21510232cc1e540256e0d66d3239921 (diff)
libc: Handle THREAD_SIGNAL correctly
Diffstat (limited to 'src')
-rw-r--r--src/libc.c4
1 files changed, 4 insertions, 0 deletions
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;