mirror of https://github.com/Icinga/icinga2.git
parent
b99b373b6f
commit
78705e74f3
|
@ -94,7 +94,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int fd = open(commandPath.CStr(), O_RDONLY | O_NONBLOCK);
|
int fd = open(commandPath.CStr(), O_RDWR | O_NONBLOCK);
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
Log(LogCritical, "ExternalCommandListener")
|
Log(LogCritical, "ExternalCommandListener")
|
||||||
|
|
Loading…
Reference in New Issue