diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-02-04 09:37:12 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-02-04 09:37:12 +0000 |
commit | 88b4878241e82dc129591b93091f06599b3d2d67 (patch) | |
tree | 7e087567d37e32431424dce3109d9bdc9717de92 | |
parent | 755c25c5c85eb459a99d6a317c95abd7d992d3bf (diff) | |
download | lcd4linux-88b4878241e82dc129591b93091f06599b3d2d67.tar.gz |
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
-rw-r--r-- | plugin_fifo.c | 2 |
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; } |