changeset 408:9460abf5d0e5

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);
author mmj
date Fri, 14 Jan 2005 06:29:39 +1100
parents 4bfcc62d6a30
children f5fa790cb7ef
files src/mylocking.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mylocking.c	Fri Jan 14 05:40:31 2005 +1100
+++ b/src/mylocking.c	Fri Jan 14 06:29:39 2005 +1100
@@ -49,6 +49,9 @@
 	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);