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 TAA20688; Thu, 20 Nov 2003 19:04:57 +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 TAA20888 for ; Thu, 20 Nov 2003 19:04:56 +0100 (MET) Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAKI4s106127; Thu, 20 Nov 2003 19:04:54 +0100 (MET) Received: from lobus.fungible.com (adsl-64-161-114-2.dsl.snfc21.pacbell.net [64.161.114.2]) by mtaw6.prodigy.net (8.12.10/8.12.10) with ESMTP id hAKI4DVs004400; Thu, 20 Nov 2003 10:04:13 -0800 (PST) Received: by lobus.fungible.com (Postfix, from userid 1000) id 6092F7F9D; Thu, 20 Nov 2003 10:04:46 -0800 (PST) Date: Thu, 20 Nov 2003 10:01:14 -0700 From-Tims-Fingers: true To: xavier.leroy@inria.fr Cc: Christian.Schaller@siemens.com, caml-list@inria.fr In-reply-to: <20031120173538.B14255@pauillac.inria.fr> (message from Xavier Leroy on Thu, 20 Nov 2003 17:35:38 +0100) Subject: Re: [Caml-list] closing file descriptors and channels References: <20031120173538.B14255@pauillac.inria.fr> Message-Id: <20031120180446.6092F7F9D@lobus.fungible.com> From: tim@fungible.com (Tim Freeman) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 fungible:01 descriptor:01 threads:01 fungible:01 ecdf:01 7180:01 relieves:99 terminator:01 caml:01 descriptors:01 underlying:01 gpg:02 fingerprint:04 presumably:95 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Xavier Leroy >The other possibility is to use close_out_noerr and close_in_noerr >that will just ignore the errors arising from the closing of the >underlying file descriptor. But this can be dangerous: certain >implementations of NFS can report write errors not at the time of the >writing, but at the time of the closing, and presumably you're >interested in getting these errors reported. It's also dangerous if you have multiple threads because the scenario I mentioned at http://caml.inria.fr/archives/200311/msg00254.html is possible. -- Tim Freeman tim@fungible.com GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78 Your levity is good. It relieves tension and fear of death. -- Terminator 3 ------------------- 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