summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-02-04 00:40:06 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-04 00:40:06 +0100
commit95bcbfdd4e96cc89791e8fa907a508ace339c4c1 (patch)
tree9f4ecbd604bd914dbc0725b3babc7781f5ec8957 /install.cpp
parentMerge "Avoid to call UI functions in child process" (diff)
parentReplace _exit(-1) with _exit(EXIT_FAILURE). (diff)
downloadandroid_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar
android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.gz
android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.bz2
android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.lz
android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.xz
android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.zst
android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.zip
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 91e4875cb..ce89e0dc0 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]);