diff options
author | Tao Bao <tbao@google.com> | 2017-02-04 00:48:27 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-02-04 00:48:27 +0100 |
commit | b8af1beed09eb1e3c5a91c445004e485ef4b789e (patch) | |
tree | 25cded2ed2293f54b91ad7c8f6c45eebb16e55ed /updater/install.cpp | |
parent | Merge "Avoid to call UI functions in child process" am: 0f275ae56e (diff) | |
parent | Merge "Replace _exit(-1) with _exit(EXIT_FAILURE)." (diff) | |
download | android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.tar android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.tar.gz android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.tar.bz2 android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.tar.lz android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.tar.xz android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.tar.zst android_bootable_recovery-b8af1beed09eb1e3c5a91c445004e485ef4b789e.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/install.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/install.cpp b/updater/install.cpp index 7a8e92f6c..c7ecdb5c7 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -247,7 +247,7 @@ static int exec_cmd(const char* path, char* const argv[]) { pid_t child; if ((child = vfork()) == 0) { execv(path, argv); - _exit(-1); + _exit(EXIT_FAILURE); } int status; @@ -1072,7 +1072,7 @@ Value* RunProgramFn(const char* name, State* state, int argc, Expr* argv[]) { if (child == 0) { execv(args2[0], args2); PLOG(ERROR) << "run_program: execv failed"; - _exit(1); + _exit(EXIT_FAILURE); } int status; |