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