From: mmj Date: Thu, 13 Jan 2005 19:29:39 +0000 (+1100) Subject: Fix unlocking. It doesn't really matter, since the locks are released before X-Git-Tag: RELEASE_1_2_0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bf3b97ca34e937b0fe1fbf6932e3a8304e7c2a7;p=thirdparty%2Fmlmmj.git Fix unlocking. It doesn't really matter, since the locks are released before this call, or will be shortly after due to a close(fd); --- diff --git a/src/mylocking.c b/src/mylocking.c index 9237d1f0..3e208964 100644 --- a/src/mylocking.c +++ b/src/mylocking.c @@ -49,6 +49,9 @@ int myunlock(int fd) struct flock locktype; locktype.l_type = F_UNLCK; + locktype.l_whence = SEEK_SET; + locktype.l_start = 0; + locktype.l_len = 0; do { myunlock = fcntl(fd, F_SETLKW, &locktype); } while(myunlock < 0 && errno == EINTR);