[cvs] bogofilter/src db_lock.c,1.1.2.4,1.1.2.5
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2004-09-03 16:13:42
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14801 Modified Files: Tag: branch-db-txn db_lock.c Log Message: Use F_WRLCK to check. Not really needed as the lock itself is always exclusive. Index: db_lock.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/Attic/db_lock.c,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -d -r1.1.2.4 -r1.1.2.5 --- db_lock.c 3 Sep 2004 16:12:34 -0000 1.1.2.4 +++ db_lock.c 3 Sep 2004 16:13:34 -0000 1.1.2.5 @@ -78,7 +78,7 @@ if (offset == lockpos && locked) return 1; - fl.l_type = F_RDLCK; + fl.l_type = F_WRLCK; fl.l_whence = SEEK_SET; fl.l_start = offset; fl.l_len = cellsize; |