From 9259aea3174d4fb2880c61acaadb75a28551344b Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:41:05 +0200 Subject: [PATCH] Fix #11762 Read failure in ProcessExecutor::handleRead() (#5196) --- cli/processexecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/processexecutor.cpp b/cli/processexecutor.cpp index 005cc0aa29b..e6aca40ee3a 100644 --- a/cli/processexecutor.cpp +++ b/cli/processexecutor.cpp @@ -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); }