Skip to content

Commit

Permalink
Fix #11762 Read failure in ProcessExecutor::handleRead() (#5196)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jun 27, 2023
1 parent e063656 commit 9259aea
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 9259aea

Please sign in to comment.