summaryrefslogtreecommitdiff
path: root/debuggerd/handler/debuggerd_handler.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-01-22 17:59:02 -0800
committerJosh Gao <jmgao@google.com>2017-01-23 11:39:31 -0800
commit7c6e3133f57b6c908e211c0013fcb68d5a44d919 (patch)
tree4dcc472531afdb58afad41e572cbc10da50df259 /debuggerd/handler/debuggerd_handler.cpp
parent122479f4a0774a2a5599e6052ad427cbbeb8094a (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
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions