aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin_fifo.c2
1 files changed, 2 insertions, 0 deletions
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;
}