1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Make sure file descriptors are closed before unlinking in VxWorks.

FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594
This commit is contained in:
drh
2010-02-05 18:00:26 +00:00
parent 6885de360d
commit 309e6555a5
3 changed files with 20 additions and 8 deletions

View File

@@ -3822,6 +3822,8 @@ static int fillInUnixFile(
pNew->lastErrno = 0;
#if OS_VXWORKS
if( rc!=SQLITE_OK ){
if( h>=0 ) close(h);
h = -1;
unlink(zFilename);
isDelete = 0;
}