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 OAA31120; Fri, 14 Nov 2003 14:42:28 +0100 (MET) 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 OAA31100 for ; Fri, 14 Nov 2003 14:42:27 +0100 (MET) Received: from inria.fr (macaque.inria.fr [128.93.8.158]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAEDgQ106423 for ; Fri, 14 Nov 2003 14:42:26 +0100 (MET) Date: Fri, 14 Nov 2003 14:42:51 +0100 Subject: Re: [Caml-list] GC and file descriptors Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Damien Doligez To: Caml Mailing List Content-Transfer-Encoding: 7bit In-Reply-To: <1F8BACD0-158F-11D8-982B-000393CB0F1E@spy.net> Message-Id: <70D8AC5D-16A8-11D8-BFCA-00039310CAE8@inria.fr> X-Mailer: Apple Mail (2.552) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 damien:01 damien:01 subprocesses:01 garbage:01 descriptors:01 descriptors:01 doligez:01 doligez:01 finalisation:02 functions:05 problem:07 approach:08 memory:09 idea:11 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Garbage collecting the subprocesses and file descriptors would make > this a bit more straightforward. The problem with this approach is that the "close" and "wait" system calls have side effects. I don't like the idea of a GC that has side effects other than the memory size of the program (and finalisation functions, of course). -- Damien ------------------- 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