summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index dfa16d0..1a04aff 100644
--- a/src/main.c
+++ b/src/main.c
@@ -452,6 +452,7 @@ int main(int argc, char *argv[])
452 lock.l_whence = SEEK_SET; 452 lock.l_whence = SEEK_SET;
453 lock.l_start = 0; 453 lock.l_start = 0;
454 lock.l_len = 0; 454 lock.l_len = 0;
455 lock.l_pid = 0;
455 fcntl(lfd, F_GETLK, &lock); 456 fcntl(lfd, F_GETLK, &lock);
456 close(lfd); 457 close(lfd);
457 if (lock.l_type != F_UNLCK) { 458 if (lock.l_type != F_UNLCK) {