From 0b10825d5ccfa8864b1aefc0aa2ee6cf2dc45e8e Mon Sep 17 00:00:00 2001 From: chrchr Date: Mon, 26 Jun 2023 11:46:24 +0200 Subject: [PATCH] Fix #11762 Read failure in ProcessExecutor::handleRead() --- 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); }