Corrected an issue that undermined the "locking disable" command,

and would keep files open (even though they were not marked as
locked) and not close them, causing an open file descriptor overflow
when too many files are read for the same design.
This commit is contained in:
Tim Edwards 2023-07-20 14:51:05 -04:00
parent 36fa9aabd1
commit 90a3cf2d72
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8.3.414
8.3.415

View File

@ -1232,7 +1232,7 @@ DBCellRead(cellDef, ignoreTech, dereference, errptr)
#ifdef FILE_LOCKS
/* Close files that were locked by another user */
if (cellDef->cd_fd == -2) FCLOSE(f);
if ((FileLocking == FALSE) || (cellDef->cd_fd == -2)) FCLOSE(f);
#else
/* When using fcntl() to enforce file locks, we can't */
/* close the file descriptor without losing the lock. */