Open the command pipe with O_RDWR

fixes #11807
This commit is contained in:
Gunnar Beutner 2016-05-18 15:52:29 +02:00
parent 0e76876228
commit 37463741f1
1 changed files with 1 additions and 1 deletions

View File

@ -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")