]> skyeroc.xyz Git - dgamelaunch/commitdiff
Fix bug in populate_games where only first game would be seen (!)
authorJoshua Kwan <joshk@triplehelix.org>
Tue, 27 Jan 2004 09:05:39 +0000 (09:05 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Tue, 27 Jan 2004 09:05:39 +0000 (09:05 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@178 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 257d154dffcad80362d283668d4c95dad232c9f1..9b4fb3ef5683297d0507ed683557af5382ef23e2 100644 (file)
@@ -451,6 +451,9 @@ populate_games (int *l)
       fl.l_type = F_UNLCK;
 
       fcntl (fd, F_SETLK, &fl);
+
+      fl.l_type = F_WRLCK;
+      
       close (fd);
     }