[Ecls-list] Closing BSD-SOCKET when a stream has been created
goffioul at imec.be
Mon Feb 14 06:20:24 UTC 2005
> The point is that the two-way stream is the only place where
> the sockets
> streams themselves are referenced. This means that whenever
> the two-way
> stream is garbage collected, the components will also be marked as
> unreferenced and their associated streams closed. And as far as I can
> tell, closing a FILE stream which was opened via fdopen() will also
> close the file handled that was open with the bsd socket routines.
I may also add that socket-close checks the closing status and
report any error, while the closing-through-GC does not.
More information about the ecl-devel