Merge "tombstoned: Rename proto tombstone before text tombstone." into main am: e0b55e5a7c
am: 17b4ba3169
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3009636 Change-Id: I2f8cf453fe833866510fdf883221de36c9c7e657 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
8c8aac2112
1 changed files with 8 additions and 8 deletions
|
@ -456,6 +456,14 @@ static void crash_completed(borrowed_fd sockfd, std::unique_ptr<Crash> crash) {
|
|||
|
||||
CrashArtifactPaths paths = queue->get_next_artifact_paths();
|
||||
|
||||
if (crash->output.proto && crash->output.proto->fd != -1) {
|
||||
if (!paths.proto) {
|
||||
LOG(ERROR) << "missing path for proto tombstone";
|
||||
} else {
|
||||
rename_tombstone_fd(crash->output.proto->fd, queue->dir_fd(), *paths.proto);
|
||||
}
|
||||
}
|
||||
|
||||
if (rename_tombstone_fd(crash->output.text.fd, queue->dir_fd(), paths.text)) {
|
||||
if (crash->crash_type == kDebuggerdJavaBacktrace) {
|
||||
LOG(ERROR) << "Traces for pid " << crash->crash_pid << " written to: " << paths.text;
|
||||
|
@ -466,14 +474,6 @@ static void crash_completed(borrowed_fd sockfd, std::unique_ptr<Crash> crash) {
|
|||
LOG(ERROR) << "Tombstone written to: " << paths.text;
|
||||
}
|
||||
}
|
||||
|
||||
if (crash->output.proto && crash->output.proto->fd != -1) {
|
||||
if (!paths.proto) {
|
||||
LOG(ERROR) << "missing path for proto tombstone";
|
||||
} else {
|
||||
rename_tombstone_fd(crash->output.proto->fd, queue->dir_fd(), *paths.proto);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void crash_completed_cb(evutil_socket_t sockfd, short ev, void* arg) {
|
||||
|
|
Loading…
Reference in a new issue