From 4a5f12d4fe5f3c1e43fed718c7c499d80b0e04a0 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Sun, 4 Jan 2004 01:00:18 +0000 Subject: [PATCH] always pass F_SETLK to fcntl even when unlocking git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@60 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- dgamelaunch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dgamelaunch.c b/dgamelaunch.c index 749611a..10b6379 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -335,7 +335,7 @@ populate_games (int *l) } fl.l_type = F_UNLCK; - fcntl (fd, F_UNLCK, &fl); + fcntl (fd, F_SETLK, &fl); close (fd); } @@ -572,7 +572,7 @@ domailuser (char *username) fl.l_type = F_UNLCK; - if (fcntl (fileno (user_spool), F_UNLCK, &fl) == -1) + if (fcntl (fileno (user_spool), F_SETLK, &fl) == -1) mvaddstr (10, 1, "Couldn't unlock the file! Oh well."); fclose (user_spool);