Fail gracefully when we fail to fork the update binary
am: c8db481780

Change-Id: I68691fb591b5819afe39e4792f9c26cc08eb87da
diff --git a/install.cpp b/install.cpp
index 71ad71f..d600ea3 100644
--- a/install.cpp
+++ b/install.cpp
@@ -369,6 +369,14 @@
     }
 
     pid_t pid = fork();
+
+    if (pid == -1) {
+        close(pipefd[0]);
+        close(pipefd[1]);
+        PLOG(ERROR) << "Failed to fork update binary";
+        return INSTALL_ERROR;
+    }
+
     if (pid == 0) {
         umask(022);
         close(pipefd[0]);