Skip to content

Commit

Permalink
Merge "Fix capturing exit status to properly display libtar results" …
Browse files Browse the repository at this point in the history
…into twrp2.4
  • Loading branch information
Dees-Troy authored and Gerrit Code Review committed Mar 4, 2013
2 parents 6c917b4 + 50d63be commit 3578701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twrpTar.cpp
Expand Up @@ -107,7 +107,7 @@ int twrpTar::createTarFork() {
LOGI("Child process ended with signal: %d\n", WTERMSIG(status));
return -1;
}
else if (WIFEXITED(status) != 0)
else if (WEXITSTATUS(status) == 0)
LOGI("Tar creation successful\n");
else {
LOGI("Tar creation failed\n");
Expand Down Expand Up @@ -141,7 +141,7 @@ int twrpTar::extractTarFork() {
LOGI("Child process ended with signal: %d\n", WTERMSIG(status));
return -1;
}
else if (WIFEXITED(status) != 0)
else if (WEXITSTATUS(status) == 0)
LOGI("Tar extraction successful\n");
else {
LOGI("Tar extraction failed\n");
Expand Down

0 comments on commit 3578701

Please sign in to comment.