From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA10211; Fri, 6 Jun 2003 19:34:10 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA10084 for ; Fri, 6 Jun 2003 19:34:09 +0200 (MET DST) Received: from ep09.kernel.pl (ep09.kernel.pl [212.87.11.162]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h56HY8H26021 for ; Fri, 6 Jun 2003 19:34:08 +0200 (MET DST) Received: (qmail 15477 invoked by uid 566); 6 Jun 2003 17:34:06 -0000 Date: Fri, 6 Jun 2003 19:30:42 +0200 From: Michal Moskal To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] Why do input* and readdir throw End_of_file ... annoying! Message-ID: <20030606173042.GA14347@roke.freak> References: <20030606170131.GA2769@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030606170131.GA2769@redhat.com> User-Agent: Mutt/1.4.1i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Spam: no; 0.00; michal:01 moskal:01 malekith:01 pld-linux:01 caml-list:01 readdir:01 closedir:01 gced:01 wroclaw:01 kernel:01 garbage:01 descriptors:01 06,:02 collector:02 objects:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Jun 06, 2003 at 06:01:32PM +0100, Richard Jones wrote: > (Another minor point - do I need to call closedir, or will the garbage > collector do that for me?) Even if it does, I wouldn't relay on it -- you never know when it runs, and if your objects are actually GCed. So if there is risk of running out of file descriptors -- close it. -- : Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv : PLD Linux ::::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h ------------------- 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