aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-02-03 15:09:23 -0600
committerTao Bao2017-02-03 16:11:11 -0600
commit3da880156b4a56a6af5065ac10dfd6833cdcb1d4 (patch)
tree9f4ecbd604bd914dbc0725b3babc7781f5ec8957 /install.cpp
parent0f275ae56e2017db5ba2a712f84b710e8a9de99e (diff)
downloadplatform-bootable-recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.gz
platform-bootable-recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.xz
platform-bootable-recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.zip
Replace _exit(-1) with _exit(EXIT_FAILURE).
-1 is not a valid exit status. Also replace a few exit(1) with exit(EXIT_FAILURE). Test: mmma bootable/recovery Change-Id: I4596c8328b770bf95acccc06a4401bd5cabd4bfd
Diffstat (limited to 'install.cpp')
-rw-r--r--install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.cpp b/install.cpp
index 91e4875c..ce89e0dc 100644
--- a/install.cpp
+++ b/install.cpp
@@ -387,7 +387,7 @@ static int try_update_binary(const char* path, ZipArchiveHandle zip, bool* wipe_
387 // the child process to hang. This deadlock results from an improperly 387 // the child process to hang. This deadlock results from an improperly
388 // copied mutex in the ui functions. 388 // copied mutex in the ui functions.
389 fprintf(stdout, "E:Can't run %s (%s)\n", chr_args[0], strerror(errno)); 389 fprintf(stdout, "E:Can't run %s (%s)\n", chr_args[0], strerror(errno));
390 _exit(-1); 390 _exit(EXIT_FAILURE);
391 } 391 }
392 close(pipefd[1]); 392 close(pipefd[1]);
393 393