From 54881abb52151ab9a4340e268c81fd3e644e9018 Mon Sep 17 00:00:00 2001 From: Matthew Bouyack Date: Tue, 20 Sep 2016 22:57:19 +0000 Subject: Revert "DO NOT MERGE Fail gracefully when we fail to fork the update binary am: de1b53d067" This reverts commit 78563fdf78861884f300a6a874d2a0306f1eb002. Change-Id: I1ea4956a9843130aa41f2f7bc011c72e64fd7b62 --- install.cpp | 8 -------- 1 file changed, 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]); -- cgit v1.2.3