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 b99b373b6f
commit 78705e74f3
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")