From: Gunnar Beutner Date: Wed, 18 May 2016 13:52:29 +0000 (+0200) Subject: Open the command pipe with O_RDWR X-Git-Tag: v2.4.9~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37463741f1e3daf9ec4d87dcb574940b303e656e;p=icinga2 Open the command pipe with O_RDWR fixes #11807 --- 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")