Lines Matching refs:error_msg
78 int ExecAndReturnCode(std::vector<std::string>& arg_vector, std::string* error_msg) { in ExecAndReturnCode() argument
81 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s", in ExecAndReturnCode()
90 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: " in ExecAndReturnCode()
104 std::string* error_msg) { in ExecAndReturnCode() argument
110 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s", in ExecAndReturnCode()
120 *error_msg = StringPrintf("Failed to set sigprocmask(): %s", strerror(errno)); in ExecAndReturnCode()
132 *error_msg = StringPrintf("Fail to restore sigprocmask(): %s", strerror(errno)); in ExecAndReturnCode()
141 *error_msg = "Timed out."; in ExecAndReturnCode()
144 *error_msg = StringPrintf("Failed to sigtimedwait(): %s", strerror(errno)); in ExecAndReturnCode()
155 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: " in ExecAndReturnCode()
167 bool Exec(std::vector<std::string>& arg_vector, std::string* error_msg) { in Exec() argument
168 int status = ExecAndReturnCode(arg_vector, error_msg); in Exec()
170 *error_msg = StringPrintf("Failed execv(%s) because non-0 exit status", in Exec()