Merge "adb: treat non-successful inc-server runs as failures" am: ff502379b7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1322109 Change-Id: I3b07d7f84a4c31ca559abbea12f7e497bf64a282
This commit is contained in:
commit
f24a7e1f62
1 changed files with 9 additions and 4 deletions
|
|
@ -180,7 +180,7 @@ std::optional<Process> install(const Files& files, const Args& passthrough_args,
|
|||
int print_fds[2];
|
||||
if (adb_socketpair(print_fds) != 0) {
|
||||
if (!silent) {
|
||||
fprintf(stderr, "Failed to create socket pair for child to print to parent\n");
|
||||
fprintf(stderr, "adb: failed to create socket pair for child to print to parent\n");
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
@ -207,10 +207,15 @@ std::optional<Process> install(const Files& files, const Args& passthrough_args,
|
|||
Result result = wait_for_installation(pipe_read_fd);
|
||||
adb_close(pipe_read_fd);
|
||||
|
||||
if (result == Result::Success) {
|
||||
// adb client exits now but inc-server can continue
|
||||
serverKiller.release();
|
||||
if (result != Result::Success) {
|
||||
if (!silent) {
|
||||
fprintf(stderr, "adb: install command failed");
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
// adb client exits now but inc-server can continue
|
||||
serverKiller.release();
|
||||
return child;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue