summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Bouyack <mbouyack@google.com>2016-09-21 00:57:19 +0200
committerMatthew Bouyack <mbouyack@google.com>2016-09-21 00:57:19 +0200
commit54881abb52151ab9a4340e268c81fd3e644e9018 (patch)
treecb728a6b3003a26884aef8852a5a6c05dea03ea9
parentDO NOT MERGE Fail gracefully when we fail to fork the update binary (diff)
downloadandroid_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.tar
android_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.tar.gz
android_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.tar.bz2
android_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.tar.lz
android_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.tar.xz
android_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.tar.zst
android_bootable_recovery-54881abb52151ab9a4340e268c81fd3e644e9018.zip
-rw-r--r--install.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/install.cpp b/install.cpp
index 080f3ff70..71ad71f68 100644
--- a/install.cpp
+++ b/install.cpp
@@ -369,14 +369,6 @@ try_update_binary(const char* path, ZipArchive* zip, bool* wipe_cache,
}
pid_t pid = fork();
-
- if (pid == -1) {
- close(pipefd[0]);
- close(pipefd[1]);
- LOGE("Failed to fork update binary: %s\n", strerror(errno));
- return INSTALL_ERROR;
- }
-
if (pid == 0) {
umask(022);
close(pipefd[0]);