1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Add a simple test case for inter-process locking. (CVS 1752)

FossilOrigin-Name: b0fcc99d227c061203fb1e0f4583b66723033159
This commit is contained in:
danielk1977
2004-06-28 08:25:47 +00:00
parent 8191bff0c2
commit 489468cf26
4 changed files with 166 additions and 8 deletions

View File

@@ -796,7 +796,7 @@ int sqlite3OsLock(OsFile *id, int locktype){
if( locktype==SHARED_LOCK
|| (locktype==EXCLUSIVE_LOCK && id->locktype<PENDING_LOCK)
){
lock.l_type = F_RDLCK;
lock.l_type = (locktype==SHARED_LOCK?F_RDLCK:F_WRLCK);
lock.l_start = PENDING_BYTE;
s = fcntl(id->h, F_SETLK, &lock);
if( s ){