summaryrefslogtreecommitdiffstats
path: root/adb_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 /adb_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 '')
-rw-r--r--adb_install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb_install.cpp b/adb_install.cpp
index fab72f8a4..79b8df91b 100644
--- a/adb_install.cpp
+++ b/adb_install.cpp
@@ -78,7 +78,7 @@ int apply_from_adb(RecoveryUI* ui, bool* wipe_cache, const char* install_file) {
pid_t child;
if ((child = fork()) == 0) {
execl("/sbin/recovery", "recovery", "--adbd", NULL);
- _exit(-1);
+ _exit(EXIT_FAILURE);
}
// FUSE_SIDELOAD_HOST_PATHNAME will start to exist once the host