mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
+1
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user