[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file descriptor leakage in ftw.scm

From: Paul Jarc
Subject: Re: file descriptor leakage in ftw.scm
Date: Mon, 13 Oct 2003 14:08:56 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> wrote:
> What about calling the gc automatically when an open failes with
> EMFILE or ENFILE in functions like scm_open_file?  Even better would
> be keeping a running total like scm_mallocated to run the gc well
> before fds are exhausted, but that is one thing more that needs to be
> carefully tuned...

Yes, it would be good to run the gc before we hit the limit, since
third-party extensions might do some opening themselves and may not
handle E[MN]FILE well.  OTOH, it's also good to explicitly close
descriptors - if close() reports an error, we want to see where it
came from.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]