Skip to content

Commit 9259aea

Browse files
Fix #11762 Read failure in ProcessExecutor::handleRead() (#5196)
1 parent e063656 commit 9259aea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/processexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ unsigned int ProcessExecutor::check()
257257
std::exit(EXIT_FAILURE);
258258
}
259259

260-
if (fcntl(pipes[0], F_SETFL, flags | O_NONBLOCK) < 0) {
260+
if (fcntl(pipes[0], F_SETFL, flags) < 0) {
261261
std::cerr << "#### ThreadExecutor::check, fcntl(F_SETFL) failed: "<< std::strerror(errno) << std::endl;
262262
std::exit(EXIT_FAILURE);
263263
}

0 commit comments

Comments
 (0)