maybe we shouldn't actually runtime error, but still doing a check

This commit is contained in:
mazunki
2021-11-09 19:03:15 +01:00
parent 17bb5643ae
commit b0eab5d793
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ inline FILE* open(const std::string& cmd, int& pid) {
if (cmd == "") return nullptr;
int fd[2];
if (pipe(fd) != 0){
throw std::runtime_error("Couldn't open a file descriptor");
// std::runtime_error("Couldn't open a file descriptor");
}
pid_t child_pid = fork();