From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id B773B7F75C for ; Mon, 11 Aug 2014 17:26:54 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of goswin-v-b@web.de) identity=pra; client-ip=212.227.17.11; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="goswin-v-b@web.de"; x-sender="goswin-v-b@web.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of goswin-v-b@web.de designates 212.227.17.11 as permitted sender) identity=mailfrom; client-ip=212.227.17.11; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="goswin-v-b@web.de"; x-sender="goswin-v-b@web.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mout.web.de) identity=helo; client-ip=212.227.17.11; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="goswin-v-b@web.de"; x-sender="postmaster@mout.web.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUCACjg6FPU4xELnGdsb2JhbABb2QcBgRkWEAEBAQEBBg0JCRQphAQBBTo/EAsOEyUPBSghiEABGLteH4YYF49MB4MvgR0BBJwuhxATkTc X-IPAS-Result: AgUCACjg6FPU4xELnGdsb2JhbABb2QcBgRkWEAEBAQEBBg0JCRQphAQBBTo/EAsOEyUPBSghiEABGLteH4YYF49MB4MvgR0BBJwuhxATkTc X-IronPort-AV: E=Sophos;i="5.01,842,1400018400"; d="scan'208";a="88984258" Received: from mout.web.de ([212.227.17.11]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Aug 2014 17:26:54 +0200 Received: from frosties.localnet ([78.43.112.61]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MPHKO-1XLHL42e24-004W9W; Mon, 11 Aug 2014 17:26:46 +0200 Received: from mrvn by frosties.localnet with local (Exim 4.82) (envelope-from ) id 1XGrUj-0003gL-Js; Mon, 11 Aug 2014 17:26:45 +0200 Date: Mon, 11 Aug 2014 17:26:45 +0200 From: Goswin von Brederlow To: Ben Millwood Cc: =?iso-8859-1?Q?Fr=E9d=E9ric?= Bour , Markus Mottl , Gabriel Scherer , Philippe Veber , caml users Message-ID: <20140811152645.GE12872@frosties> References: <1407522483.1213.2@mail.lakaban.net> <1407527123.1213.3@mail.lakaban.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:3gUokQYsufBnjcwXiKg5b9DB9Ije7myEI4tQHPngtr7F+M1AZOr QN71UZJbEXq/8Sb9mWLcdnaRdgdd9xpb1pcMRjapzmfQI9e5kIWdCRoz+tuvDpV/EHMVwVP tI6cUOvEJn2R3YNOND/JcVFFHWz1QS5AINEwhzgBHDm3xXFO8L6pJVUoKRuygqKjDbYk3kt /Nf4NSChWTsJZYsIevigg== X-UI-Out-Filterresults: notjunk:1; Subject: Re: [Caml-list] Not letting channels escape. Hi, as a side node: There is not just the danger of an escaped channel giving runtime errors. Think what happens when you let fd1 = Unix.open_file file1 in let () = Unix.close fd in let fd2 = Unix.open_file file2 in Unix.write fd1 Suddenly you write to the wrong file. MfG Goswin