Lines Matching refs:arg_vector

65 pid_t ExecWithoutWait(const std::vector<std::string>& arg_vector,  in ExecWithoutWait()  argument
69 const char* program = arg_vector[0].c_str(); in ExecWithoutWait()
71 args.reserve(arg_vector.size() + 1); in ExecWithoutWait()
72 for (const auto& arg : arg_vector) { in ExecWithoutWait()
95 PLOG(FATAL) << "Failed to execute (" << ToCommandLine(arg_vector) << ")"; in ExecWithoutWait()
99 ToCommandLine(arg_vector).c_str(), in ExecWithoutWait()
108 const std::vector<std::string>& arg_vector, in WaitChild() argument
116 ToCommandLine(arg_vector).c_str(), in WaitChild()
123 ToCommandLine(arg_vector).c_str(), in WaitChild()
132 ToCommandLine(arg_vector).c_str(), in WaitChild()
142 const std::vector<std::string>& arg_vector, in WaitChildWithTimeoutFallback() argument
158 ExecResult result = WaitChild(pid, arg_vector, /*no_wait=*/true, error_msg); in WaitChildWithTimeoutFallback()
171 ToCommandLine(arg_vector).c_str(), in WaitChildWithTimeoutFallback()
182 const std::vector<std::string>& arg_vector, in WaitChildWithTimeout() argument
188 WaitChild(pid, arg_vector, /*no_wait=*/true, &ignored_error_msg); in WaitChildWithTimeout()
205 ToCommandLine(arg_vector).c_str(), in WaitChildWithTimeout()
211 return WaitChild(pid, arg_vector, /*no_wait=*/true, error_msg); in WaitChildWithTimeout()
248 int ExecUtils::ExecAndReturnCode(const std::vector<std::string>& arg_vector, in ExecAndReturnCode() argument
250 return ExecAndReturnResult(arg_vector, /*timeout_sec=*/-1, error_msg).exit_code; in ExecAndReturnCode()
253 ExecResult ExecUtils::ExecAndReturnResult(const std::vector<std::string>& arg_vector, in ExecAndReturnResult() argument
256 return ExecAndReturnResult(arg_vector, in ExecAndReturnResult()
264 ExecResult ExecUtils::ExecAndReturnResult(const std::vector<std::string>& arg_vector, in ExecAndReturnResult() argument
276 pid_t pid = ExecWithoutWait(arg_vector, new_process_group, error_msg); in ExecAndReturnResult()
289 WaitChildWithTimeout(pid, std::move(pidfd), arg_vector, timeout_sec * 1000, error_msg); in ExecAndReturnResult()
293 result = WaitChildWithTimeoutFallback(pid, arg_vector, timeout_sec * 1000, error_msg); in ExecAndReturnResult()
296 result = WaitChild(pid, arg_vector, /*no_wait=*/true, error_msg); in ExecAndReturnResult()
310 if (WaitChild(pid, arg_vector, /*no_wait=*/false, &local_error_msg).status == in ExecAndReturnResult()
312 LOG(ERROR) << "Failed to clean up child process '" << arg_vector[0] << "': " << local_error_msg; in ExecAndReturnResult()
318 bool ExecUtils::Exec(const std::vector<std::string>& arg_vector, std::string* error_msg) const { in Exec() argument
319 int status = ExecAndReturnCode(arg_vector, error_msg); in Exec()
327 ToCommandLine(arg_vector).c_str()); in Exec()