From: Josh Gao Date: Wed, 26 Oct 2016 20:27:19 +0000 (-0700) Subject: Reserve a realtime signal for debuggerd. X-Git-Tag: android-x86-8.1-r1~224^2^2~69^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f8a6d4745daafb6aced5cdeb76325c719ca1374b;p=android-x86%2Fbionic.git Reserve a realtime signal for debuggerd. Allocate __SIGRTMIN + 3 for triggering native stack dumps (like SIGQUIT for Java processes). Bug: http://b/30705528 Test: debuggerd_test Change-Id: I81d622fba32a651555268a8a2ba6721c61c93a58 --- diff --git a/libc/bionic/__libc_current_sigrtmin.cpp b/libc/bionic/__libc_current_sigrtmin.cpp index 16b037d1e..7c9326725 100644 --- a/libc/bionic/__libc_current_sigrtmin.cpp +++ b/libc/bionic/__libc_current_sigrtmin.cpp @@ -31,7 +31,8 @@ // POSIX timers use __SIGRTMIN + 0. // libbacktrace uses __SIGRTMIN + 1. // libcore uses __SIGRTMIN + 2. +// __SIGRTMIN + 3 is reserved for triggering native stack dumps. int __libc_current_sigrtmin(void) { - return __SIGRTMIN + 3; + return __SIGRTMIN + 4; }