Skip to content

Commit

Permalink
Fix #11762 Read failure in ProcessExecutor::handleRead()
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jun 26, 2023
1 parent 9dc38f8 commit 0b10825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/processexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ unsigned int ProcessExecutor::check()
std::exit(EXIT_FAILURE);
}

if (fcntl(pipes[0], F_SETFL, flags | O_NONBLOCK) < 0) {
if (fcntl(pipes[0], F_SETFL, flags) < 0) {
std::cerr << "#### ThreadExecutor::check, fcntl(F_SETFL) failed: "<< std::strerror(errno) << std::endl;
std::exit(EXIT_FAILURE);
}
Expand Down

0 comments on commit 0b10825

Please sign in to comment.