platform_system_core/debuggerd/handler
Josh Gao 6b8caf8eb7 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
(cherry picked from commit 18cb681247)
2019-04-17 17:53:43 -07:00
..
debuggerd_fallback.cpp Revert "Check for data races when reading JIT/DEX entries." 2019-04-12 12:55:50 +00:00
debuggerd_fallback_nop.cpp debuggerd_handler: implement missing fallback functionality. 2017-03-09 11:26:05 -08:00
debuggerd_handler.cpp debuggerd: call setsid in our children. 2019-04-17 17:53:43 -07:00
fallback.h Fix multithreaded backtraces for seccomp processes. 2018-09-12 18:12:13 -07:00