diff options
Diffstat (limited to 'debuggerd/backtrace.cpp')
-rw-r--r-- | debuggerd/backtrace.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debuggerd/backtrace.cpp b/debuggerd/backtrace.cpp index c4a2143..e7919e9 100644 --- a/debuggerd/backtrace.cpp +++ b/debuggerd/backtrace.cpp @@ -88,7 +88,9 @@ static void dump_thread( return; } - wait_for_stop(tid, total_sleep_time_usec); + if (!attached && wait_for_sigstop(tid, total_sleep_time_usec, detach_failed) == -1) { + return; + } UniquePtr<Backtrace> backtrace(Backtrace::Create(tid, BACKTRACE_CURRENT_THREAD)); if (backtrace->Unwind(0)) { |