diff options
author | Tao Bao <tbao@google.com> | 2017-02-03 13:09:23 -0800 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2017-02-03 14:11:11 -0800 |
commit | 3da880156b4a56a6af5065ac10dfd6833cdcb1d4 (patch) | |
tree | 9f4ecbd604bd914dbc0725b3babc7781f5ec8957 /install.cpp | |
parent | 0f275ae56e2017db5ba2a712f84b710e8a9de99e (diff) |
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.cpp | 2 |
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_ // the child process to hang. This deadlock results from an improperly // copied mutex in the ui functions. fprintf(stdout, "E:Can't run %s (%s)\n", chr_args[0], strerror(errno)); - _exit(-1); + _exit(EXIT_FAILURE); } close(pipefd[1]); |