Revert "DO NOT MERGE Fail gracefully when we fail to fork the update binary am: de1b53d067"
This reverts commit 78563fdf78.
Change-Id: I1ea4956a9843130aa41f2f7bc011c72e64fd7b62
This commit is contained in:
@@ -369,14 +369,6 @@ try_update_binary(const char* path, ZipArchive* zip, bool* wipe_cache,
|
|||||||
}
|
}
|
||||||
|
|
||||||
pid_t pid = fork();
|
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) {
|
if (pid == 0) {
|
||||||
umask(022);
|
umask(022);
|
||||||
close(pipefd[0]);
|
close(pipefd[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user