Fix #11762 Read failure in ProcessExecutor::handleRead() (#5196)

This commit is contained in:
chrchr-github 2023-06-27 15:41:05 +02:00 committed by GitHub
parent e063656173
commit 9259aea317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}