android_system_core/debuggerd
Josh Gao 18cb681247 debuggerd: call setsid in our children.
There appears to be a kernel bug that causes SIGHUP and SIGCONT to be
sent to the parent process group we spawn from if the process group
contains stopped jobs (e.g. the parent itself, because of wait_for_gdb).

Call setsid in all of our children to prevent this from happening.

Bug: http://b/31124563
Test: adb shell 'setprop debug.debuggerd.wait_for_gdb 1; killall -ABRT surfaceflinger'
Change-Id: I1a48d70886880a5bfbe2deb80d48deece55faf09
2019-04-16 13:17:08 -07:00
..
client debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00
common/include tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
crasher Fix two clang-tidy issues in crasher.cpp. 2018-09-24 13:18:22 -07:00
handler debuggerd: call setsid in our children. 2019-04-16 13:17:08 -07:00
include/debuggerd tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
libdebuggerd Remove include of backtrace/Backtrace.h. 2019-04-08 17:18:24 -07:00
seccomp_policy debuggerd seccomp: explain why we define PROT_READ/WRITE. 2018-02-18 23:50:19 -08:00
tombstoned debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Fix libdexfile dependencies to avoid direct dependency on libdexfile_external. 2019-02-24 22:04:11 +00:00
Android.mk Mark crash_dump.policy as not supported on mips 2018-02-27 15:35:11 -08:00
crash_dump.cpp debuggerd: call setsid in our children. 2019-04-16 13:17:08 -07:00
debuggerd.cpp debuggerd: add support for Java traces. 2018-06-14 15:40:06 -07:00
debuggerd_benchmark.cpp debuggerd: add pause time benchmark. 2017-12-19 16:36:04 -08:00
debuggerd_test.cpp debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
protocol.h crash_dump: pass the address of the fdsan table. 2018-08-06 18:50:10 -07:00
util.cpp debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00
util.h debuggerd: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00