From 37463741f1e3daf9ec4d87dcb574940b303e656e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 18 May 2016 15:52:29 +0200 Subject: [PATCH] Open the command pipe with O_RDWR fixes #11807 --- lib/compat/externalcommandlistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/externalcommandlistener.cpp b/lib/compat/externalcommandlistener.cpp index dcd57eb3f..359800dbf 100644 --- a/lib/compat/externalcommandlistener.cpp +++ b/lib/compat/externalcommandlistener.cpp @@ -94,7 +94,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath) } for (;;) { - int fd = open(commandPath.CStr(), O_RDONLY | O_NONBLOCK); + int fd = open(commandPath.CStr(), O_RDWR | O_NONBLOCK); if (fd < 0) { Log(LogCritical, "ExternalCommandListener") -- 2.40.0