summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-02-03 22:09:23 +0100
committerTao Bao <tbao@google.com>2017-02-03 23:11:11 +0100
commit3da880156b4a56a6af5065ac10dfd6833cdcb1d4 (patch)
tree9f4ecbd604bd914dbc0725b3babc7781f5ec8957 /updater/install.cpp
parentMerge "Avoid to call UI functions in child process" (diff)
downloadandroid_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar
android_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.gz
android_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.bz2
android_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.lz
android_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.xz
android_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.tar.zst
android_bootable_recovery-3da880156b4a56a6af5065ac10dfd6833cdcb1d4.zip
Diffstat (limited to 'updater/install.cpp')
-rw-r--r--updater/install.cpp4
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;