On Sun, Oct 24, 2004 at 01:39:06AM +0200, Peter Simons wrote:
> What happens when a System.IO.Handle falls out of scope
> without being explicitly hClosed? Is that a resource leak?
> Or will the RTS close the handle for me?
AFAIK, Handles have finalisers which close them, but I don't know if GHC
triggers garbage collection when file descriptors run out. If not, you
will have problems if you manage to run out of fds between GCs.
How about using bracket to introduce explicit close on end of scope?
Best regards,
Tom
--
.signature: Too many levels of symbolic links