From 88b4878241e82dc129591b93091f06599b3d2d67 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 4 Feb 2010 09:37:12 +0000 Subject: clear errno after creating the FIFO by Claas Hilbrecht git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1098 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_fifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin_fifo.c b/plugin_fifo.c index 7a9553a..165cb32 100644 --- a/plugin_fifo.c +++ b/plugin_fifo.c @@ -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; } -- cgit v1.2.3