Skip to content
Permalink
Browse files

Open the command pipe with O_RDWR

fixes #11807
  • Loading branch information...
gunnarbeutner committed May 18, 2016
1 parent b99b373 commit 78705e74f31b0e6b70ca38780f27dfcd901e2658
Showing with 1 addition and 1 deletion.
  1. +1 −1 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")

0 comments on commit 78705e7

Please sign in to comment.
You can’t perform that action at this time.