Merge "check send_signal result before further dealing"
This commit is contained in:
commit
5830f7b564
1 changed files with 3 additions and 1 deletions
|
|
@ -140,7 +140,9 @@ bool debuggerd_trigger_dump(pid_t pid, unique_fd output_fd, DebuggerdDumpType du
|
||||||
}
|
}
|
||||||
|
|
||||||
bool backtrace = dump_type == kDebuggerdBacktrace;
|
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));
|
rc = TEMP_FAILURE_RETRY(recv(set_timeout(sockfd.get()), &response, sizeof(response), MSG_TRUNC));
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue