From: Richard Jones <rich@annexia.org>
To: Henri DF <henri.dubois-ferriere@epfl.ch>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] file descriptor leaks?
Date: Tue, 4 May 2004 10:31:05 +0100 [thread overview]
Message-ID: <20040504093105.GN4559@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0405041112110.29917-100000@lcmpc4.epfl.ch>
On Tue, May 04, 2004 at 11:15:44AM +0200, Henri DF wrote:
> <quote>Calls to read_file open the file but don't close it. Because OCaml
> uses a
> full garbage collector chan isn't collected until some (unknown,
> asynchronous) time later when the minor heap becomes full. This means that
> open file descriptors build up waiting to be collected in one go. If files
> is a long list, then this code is likely to fail when the OS limit on the
> number of open files is reached.
> </quote>
Yes, I think this part of the tutorial is wrong.
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
If I have not seen as far as others, it is because I have been
standing in the footprints of giants. -- from Usenet
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2004-05-04 9:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-03 23:32 Ker Lutyn
2004-05-04 7:46 ` Basile Starynkevitch local
2004-05-04 9:15 ` Henri DF
2004-05-04 9:31 ` Richard Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040504093105.GN4559@redhat.com \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
--cc=henri.dubois-ferriere@epfl.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox