From: Joshua Kwan Date: Tue, 27 Jan 2004 09:05:39 +0000 (+0000) Subject: Fix bug in populate_games where only first game would be seen (!) X-Git-Tag: v1.6.1-roc-dev~520 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=2c83144f25a5de85e88d44d46ca48936c726f123;p=dgamelaunch Fix bug in populate_games where only first game would be seen (!) git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@178 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index 257d154..9b4fb3e 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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); }