diff --git a/pigpio.c b/pigpio.c index 4c49d44..e3f04e4 100644 --- a/pigpio.c +++ b/pigpio.c @@ -7299,6 +7299,8 @@ static void initCheckLockFile(void) char str[20]; fd = open(PI_LOCKFILE, O_RDONLY); + if(errno == ENOENT) + errno = 0; // reset if expected error occured if (fd != -1) {