mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-27 23:54:25 +02:00
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:
parent
2a2f13d3b5
commit
4a5f12d4fe
@ -335,7 +335,7 @@ populate_games (int *l)
|
|||||||
}
|
}
|
||||||
fl.l_type = F_UNLCK;
|
fl.l_type = F_UNLCK;
|
||||||
|
|
||||||
fcntl (fd, F_UNLCK, &fl);
|
fcntl (fd, F_SETLK, &fl);
|
||||||
close (fd);
|
close (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -572,7 +572,7 @@ domailuser (char *username)
|
|||||||
|
|
||||||
fl.l_type = F_UNLCK;
|
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.");
|
mvaddstr (10, 1, "Couldn't unlock the file! Oh well.");
|
||||||
|
|
||||||
fclose (user_spool);
|
fclose (user_spool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user