fd-closing finalizer on streams considered unwarranted
Bug #630680 reported by
Tobias C. Rittweiler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Triaged
|
Low
|
Unassigned |
Bug Description
OPEN passes :AUTO-CLOSE T to MAKE-FD-STREAM, resulting in the creation
of a finalizer for the stream which closes the underlying file descriptor in case
it has not when the stream will be garbaged collected.
I think that is not a good thing to do (by default anyway) because it postpones
fd leakage problems, and makes them harder to track down.
To post a comment you must log in.
Sounds reasonable to me. Maybe the finalizer could warn though or
print a message as it does with #!+sb-show.