This commit is contained in:
parent
edd4d9bca5
commit
2a619f6fbc
|
|
@ -137,6 +137,7 @@ void execute_command(std::vector<std::string>& command, std::string& stdout_str,
|
|||
|
||||
pid_t pid = fork();
|
||||
if (pid < 0) {
|
||||
std::cerr << strerror(errno) << "\n";
|
||||
throw std::runtime_error("Failed to fork process");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue