[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file descriptor leakage in ftw.scm
From: |
Marius Vollmer |
Subject: |
Re: file descriptor leakage in ftw.scm |
Date: |
Sun, 12 Oct 2003 19:07:11 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
address@hidden (Paul Jarc) writes:
> (OOC, would a patch like this be appropriate for 1.6? What's the
> policy there?)
Yes, since it's a pure bug fix, we can apply it to 1.6 also. I will
do this. Thanks!
> ISTR someone suggested triggering the garbage collector after so many
> open()s; that might make this patch unnecessary - if it included
> opendir(), that is.
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...
Thoughts?
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405