summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-02-04 00:51:27 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-02-04 00:51:27 +0100
commit5101b78f031ee546f9455180107499f57991b846 (patch)
tree25cded2ed2293f54b91ad7c8f6c45eebb16e55ed /install.cpp
parentMerge "Avoid to call UI functions in child process" am: 0f275ae56e am: 5fa2e576f9 (diff)
parentMerge "Replace _exit(-1) with _exit(EXIT_FAILURE)." am: 95bcbfdd4e (diff)
downloadandroid_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.tar
android_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.tar.gz
android_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.tar.bz2
android_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.tar.lz
android_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.tar.xz
android_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.tar.zst
android_bootable_recovery-5101b78f031ee546f9455180107499f57991b846.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 248a1336e..f51bbf05c 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]);