1
0
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:
drh
2005-11-29 19:56:32 +00:00
parent a2eebaa43b
commit 392b3ddf2e
3 changed files with 8 additions and 8 deletions

View File

@@ -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();