Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 647ec18a authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

debuggerd: fix missed use of ptrace(PTRACE_ATTACH). am: 8b6b654a am: fe597933

am: 073f7318

Change-Id: If0a221d5fcfe25c7e731de4039318a24cd5cb782
parents ff716c73 073f7318
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -447,7 +447,7 @@ static bool dump_sibling_thread_report(
    }

    // Skip this thread if cannot ptrace it
    if (ptrace(PTRACE_ATTACH, new_tid, 0, 0) < 0) {
    if (!ptrace_attach_thread(pid, new_tid)) {
      _LOG(log, logtype::ERROR, "ptrace attach to %d failed: %s\n", new_tid, strerror(errno));
      continue;
    }