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

Commit 5830f7b5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "check send_signal result before further dealing"

parents ebc87c98 3492221f
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) {