diff options
Diffstat (limited to 'runtime/exec_utils.cc')
| -rw-r--r-- | runtime/exec_utils.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/exec_utils.cc b/runtime/exec_utils.cc index 58ee5ce01e..1021429460 100644 --- a/runtime/exec_utils.cc +++ b/runtime/exec_utils.cc @@ -16,11 +16,9 @@ #include "exec_utils.h" -#include <errno.h> #include <poll.h> #include <sys/types.h> #include <sys/wait.h> -#include <sysexits.h> #include <unistd.h> #include <ctime> @@ -70,6 +68,7 @@ pid_t ExecWithoutWait(const std::vector<std::string>& arg_vector, std::string* e // Convert the args to char pointers. const char* program = arg_vector[0].c_str(); std::vector<char*> args; + args.reserve(arg_vector.size() + 1); for (const auto& arg : arg_vector) { args.push_back(const_cast<char*>(arg.c_str())); } @@ -91,12 +90,6 @@ pid_t ExecWithoutWait(const std::vector<std::string>& arg_vector, std::string* e } else { execve(program, &args[0], envp); } - if (errno == EACCES) { - // This usually happens when a non-Zygote process invokes dex2oat to generate an in-memory - // boot image, which is WAI. - PLOG(DEBUG) << "Failed to execute (" << ToCommandLine(arg_vector) << ")"; - _exit(EX_NOPERM); - } // This should be regarded as a crash rather than a normal return. PLOG(FATAL) << "Failed to execute (" << ToCommandLine(arg_vector) << ")"; UNREACHABLE(); |