[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GC and file descriptors (and external resources.in general, I guess)
From: |
Marius Vollmer |
Subject: |
Re: GC and file descriptors (and external resources.in general, I guess) |
Date: |
31 Oct 2000 20:28:05 +0100 |
User-agent: |
Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 |
Michael Livshin <address@hidden> writes:
> currently, if a call to `open' or `opendir' fails, Guile throws an
> error.
>
> what it *should* do, IMHO, is try to GC first, since it is likely to
> free some file descriptors.
>
> so, well, is there any reason why this isn't done? if there's no
> good reason, I'll add this functionality.
I think it's a good idea. (Of course, we should GC only when the error
is EMFILE or ENFILE.) There is like no great danger of getting into
oscillations, like there is for memory.