readFile close behaviour
Pixel
pixel at mandrakesoft.com
Fri Oct 5 07:58:28 EDT 2001
Malcolm Wallace <Malcolm.Wallace at cs.york.ac.uk> writes:
> It is really a question of when the garbage collector runs.
> Your example program is very small, so the GC does not run (and
> therefore does not collect the unused handles) before the open file
> table is filled.
what about running the garbage collector for such errors, just in case it can
help? all resources that can be freed by the garbage collector should trigger
a GC when that resource is low, uh? (maybe that's what ghc-5.02 is doing since
i've not been able to reproduce the pb after increasing the heap)
More information about the Glasgow-haskell-bugs
mailing list