Changeset 5995


Ignore:
Timestamp:
Mar 7, 2007, 6:24:29 AM (18 years ago)
Author:
Gary Byers
Message:

OPEN, CLOSE lock *OPEN-FILE-STREAMS-LOCK* before accessing *OPEN-FILE-STREAMS*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-sysio.lisp

    r5570 r5995  
    639639            (unix-rename (namestring actual-filename) (probe-file-x filename)))
    640640          (delete-file actual-filename)))
    641       (setq *open-file-streams* (nremove s *open-file-streams*)))))
     641      (with-lock-grabbed (*open-file-streams-lock*)
     642        (setq *open-file-streams* (nremove s *open-file-streams*))))))
    642643
    643644
     
    842843                  (if (eq direction :probe)
    843844                    (close fstream)
    844                     (push fstream *open-file-streams*))
     845                    (with-lock-grabbed (*open-file-streams-lock*)
     846                      (push fstream *open-file-streams*)))
    845847                  fstream)))))))))
    846848
Note: See TracChangeset for help on using the changeset viewer.