mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-27 08:52:26 +03:00
The crash test works now, at least on unix. Untested on windows. But it never
worked on windows before so if it still does not there is no big loss. I am still troubled by the current design of the OS overloading mechanism. Expect to see more changes. (CVS 2794) FossilOrigin-Name: fa1d7ecfcc648fbe9fc6d92e080cf937bdc9c439
This commit is contained in:
@@ -1399,7 +1399,7 @@ static int unixClose(OsFile **pId){
|
||||
OsFile *id = *pId;
|
||||
if( !id ) return SQLITE_OK;
|
||||
if( CHECK_THREADID(id) ) return SQLITE_MISUSE;
|
||||
sqlite3Io.xUnlock(id, NO_LOCK);
|
||||
unixUnlock(id, NO_LOCK);
|
||||
if( id->dirfd>=0 ) close(id->dirfd);
|
||||
id->dirfd = -1;
|
||||
sqlite3OsEnterMutex();
|
||||
|
||||
Reference in New Issue
Block a user