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

Commit 3f6ec844 authored by Liu Changcheng's avatar Liu Changcheng Committed by android-build-merger
Browse files

Merge "check send_signal result before further dealing" am: 5830f7b5

am: 381a1355

Change-Id: Ia673d951bd8ef42aa98e4a4098cac59f6dc2f409
parents ef3ee400 381a1355
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -140,7 +140,9 @@ bool debuggerd_trigger_dump(pid_t pid, unique_fd output_fd, DebuggerdDumpType du
  }

  bool backtrace = dump_type == kDebuggerdBacktrace;
  send_signal(pid, backtrace);
  if (!send_signal(pid, backtrace)) {
    return false;
  }

  rc = TEMP_FAILURE_RETRY(recv(set_timeout(sockfd.get()), &response, sizeof(response), MSG_TRUNC));
  if (rc == 0) {