]> git.webhop.me Git - lcd4linux.git/commitdiff
update fifo plugin - untested
authormichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 22 Nov 2008 23:34:20 +0000 (23:34 +0000)
committermichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 22 Nov 2008 23:34:20 +0000 (23:34 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@900 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_fifo.c

index 714066d17d68c3ac09fc5ae7713d41ec6f474fb3..f8be4c84cfca6a96b8d9848b66de2b7b549a5fa0 100644 (file)
@@ -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) {