aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin_fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin_fifo.c b/plugin_fifo.c
index 714066d..f8be4c8 100644
--- a/plugin_fifo.c
+++ b/plugin_fifo.c
@@ -164,7 +164,7 @@ static void fiforead(RESULT * result)
bytes = read(fd.input, buf, FIFO_BUFFER_SIZE);
}
- if (bytes < 0 || errno > 0) {
+ if (bytes < 0 || (errno > 0 && errno != EAGAIN)) {
error("[FIFO] Error %i: %s", errno, strerror(errno));
} else {
if (strlen(buf) > 0) {