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 SAA15502; Thu, 20 Nov 2003 18:14:06 +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 SAA18019 for ; Thu, 20 Nov 2003 18:14:05 +0100 (MET) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAKHE4100394 for ; Thu, 20 Nov 2003 18:14:04 +0100 (MET) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hAKHE4aW040477 for ; Thu, 20 Nov 2003 18:14:04 +0100 (CET) Received: from (george@localhost) by clipper.ens.fr (8.12.3/jb-1.1) Date: Thu, 20 Nov 2003 18:14:03 +0100 From: Nicolas George To: Caml mailing list Subject: Re: [Caml-list] closing file descriptors and channels Message-ID: <20031120171403.GA3281@clipper.ens.fr> Reply-To: Caml mailing list References: <20031120173538.B14255@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20031120173538.B14255@pauillac.inria.fr> User-Agent: Mutt/1.4 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 brumaire:01 descriptor:01 descriptor:01 definitively:01 ecrit:01 nicolas:01 nicolas:01 descriptors:01 underlying:01 threaded:02 subsystem:97 rewrite:04 ens:06 problem:07 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --AhhlLboLdkugWU4S Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le decadi 30 brumaire, an CCXII, Xavier Leroy a =E9crit=A0: > 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: This can be even more dangerous if another file has been opened between the two closes (which can be invisible in threaded programs) and has got the file descriptor that has just been closed. I am preparing a RFC for this list about a complete rewrite of the I/O subsystem, and this is definitively a problem that must be addressed. --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (SunOS) iD8DBQE/vPZasGPZlzblTJMRAlKRAJ90tKXLv9pZtZztsCaRC5knnNJymwCgtT23 7KPQyykxcl4ZKzjucLmqo2E= =m9RA -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- ------------------- 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