]> git.webhop.me Git - lcd4linux.git/commitdiff
clear errno after creating the FIFO by Claas Hilbrecht
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 4 Feb 2010 09:37:12 +0000 (09:37 +0000)
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 4 Feb 2010 09:37:12 +0000 (09:37 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1098 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_fifo.c

index 7a9553a0ff72989d9523ec95d8143bf840e54256..165cb3241003f9210f2cd67e4a83ed61ce8cf434 100644 (file)
@@ -110,6 +110,8 @@ static int makeFifo(void)
        error("Couldn't create FIFO \"%s\": %s\n", fd.path, strerror(errno));
        return -1;
     }
+    /* clear errno */
+    errno = 0;
     fd.created = 1;
     return 0;
 }