aboutsummaryrefslogtreecommitdiff
path: root/src/os.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os.c')
-rw-r--r--src/os.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os.c b/src/os.c
index 0c0f4b357..e1d0ebc6c 100644
--- a/src/os.c
+++ b/src/os.c
@@ -397,6 +397,9 @@ int sqliteOsLock(OsFile id, int wrlock){
lock.l_whence = SEEK_SET;
lock.l_start = lock.l_len = 0L;
rc = fcntl(id, F_SETLK, &lock);
+ if( rc ){
+ fcntl(id, F_GETLK, &lock); /* For debugging */
+ }
return rc==0 ? SQLITE_OK : SQLITE_BUSY;
#endif
#if OS_WIN