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:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user