Opened 10 years ago

#766 new enhancement

Implement transferring ownership of a stream

Reported by: rongarret Owned by:
Priority: trivial Milestone:
Component: Runtime (threads, GC) Version: trunk
Keywords: Cc:


From the docs:

There was some discussion on openmcl-devel about the idea of "transferring ownership" of a stream; this has not yet been implemented.

If a stream is opened in a listener and the listener is subsequently closed it becomes impossible (as far as I can tell) to close the stream.

The fix is pretty simple:

(defun grab-stream (stream &optional (process *current-process*))
  (setf (slot-value (ccl::stream-ioblock stream nil) 'ccl::owner) process))

or something like that.

Change History (0)

Note: See TracTickets for help on using tickets.