android_system_core/debuggerd
Josh Gao 7c6e3133f5 crash_dump: set a watchdog timer.
PTRACE_DETACH is only necessary if the process is in group-stop state,
the tracer exiting is sufficient to detach and resume tracees.

Using this, set a 5 second timer with alarm(2) that just kills us, to
avoid leaving processes stopped.

Bug: http://b/34472671
Test: debuggerd_test
Test: crasher + manually inserting a 10 second sleep into crash_dump
Change-Id: Iacaa796f79037aa1585f3f2159abe45ef0069311
2017-01-23 11:39:31 -08:00
..
client debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
crasher debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
handler crash_dump: clear the default crash handlers. 2017-01-23 11:34:49 -08:00
include/debuggerd crash_dump: clear the default crash handlers. 2017-01-23 11:34:49 -08:00
libdebuggerd debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
tombstoned Merge "init: don't start tombstoned until /data is mounted." 2017-01-20 22:13:38 +00:00
.clang-format debuggerd: add .clang-format. 2015-11-16 17:26:22 -08:00
Android.bp debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
crash_dump.cpp crash_dump: set a watchdog timer. 2017-01-23 11:39:31 -08:00
debuggerd.cpp debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
debuggerd_test.cpp crash_dump: set a watchdog timer. 2017-01-23 11:39:31 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
signal_sender.cpp liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
util.cpp debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00