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:
parent
36fa9aabd1
commit
90a3cf2d72
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue