[icinga-checkins] icinga.org: icinga2/feature/doc-review-11599: Open the command pipe with O_RDWR

git at icinga.org git at icinga.org
Mon May 23 11:51:55 CEST 2016


Module: icinga2
Branch: feature/doc-review-11599
Commit: 37463741f1e3daf9ec4d87dcb574940b303e656e
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=37463741f1e3daf9ec4d87dcb574940b303e656e

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed May 18 15:52:29 2016 +0200

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 dcd57eb..359800d 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")



More information about the icinga-checkins mailing list