commit | 461c3136b133d32976384a6c5d591b0b14ccc332 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Sun Jan 22 17:59:02 2017 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Jan 23 11:39:31 2017 -0800 |
tree | 4dcc472531afdb58afad41e572cbc10da50df259 | |
parent | c2cc46670135e14dfb3e7482d9d584862addf547 [diff] |
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