Changeset 5022


Ignore:
Timestamp:
Aug 25, 2006, 7:19:53 PM (18 years ago)
Author:
Gary Byers
Message:

PREPARE-TO-QUIT: other threads should be dead by the time that
streams on *OPEN-FILE-STREAMS* are closed, so unlock those
streams with extreme prejudice before closing them.

File:
1 edited

Legend:

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

    r4343 r5022  
    156156    (shutdown-lisp-threads)
    157157    (while *open-file-streams*
     158      (let* ((ioblock (stream-ioblock (car *open-file-streams*) nil)))
     159        (when ioblock
     160          (setf (ioblock-inbuf-lock ioblock) nil
     161                (ioblock-outbuf-lock ioblock) nil
     162                (ioblock-owner ioblock) nil)))
    158163      (close (car *open-file-streams*)))
    159164    (setf (interrupt-level) -1)       ; can't abort after this
Note: See TracChangeset for help on using the changeset viewer.