diff --git a/src/main.c b/src/main.c index f784f838..e252b105 100644 --- a/src/main.c +++ b/src/main.c @@ -459,6 +459,7 @@ int main(int argc, char *argv[]) lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 0; + lock.l_pid = 0; fcntl(lfd, F_GETLK, &lock); close(lfd); if (lock.l_type != F_UNLCK) {