always pass F_SETLK to fcntl even when unlocking

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@60 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-04 01:00:18 +00:00
parent 2a2f13d3b5
commit 4a5f12d4fe
1 changed files with 2 additions and 2 deletions

View File

@ -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);