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

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

debuggerd: fix `debuggerd <pid>`

am: 1e4afb52

Change-Id: I331559a71d88b495d81e7b980864560597d57492
parents b5be6e30 1e4afb52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ int main(int argc, char* argv[]) {
  std::thread redirect_thread = spawn_redirect_thread(std::move(piperead));
  bool backtrace = argc == 3;
  if (!debuggerd_trigger_dump(pid, std::move(pipewrite),
                              backtrace ? kDebuggerdBacktrace : kDebuggerdBacktrace, 0)) {
                              backtrace ? kDebuggerdBacktrace : kDebuggerdTombstone, 0)) {
    redirect_thread.join();
    errx(1, "failed to dump process %d", pid);
  }