From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 79DF0BC69 for ; Sat, 15 Sep 2007 13:35:38 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAPZg60Y+FFrD/2dsb2JhbACBVw X-IronPort-AV: E=Sophos;i="4.20,258,1186351200"; d="scan'208";a="814411" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Sep 2007 13:36:18 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l8FBZvww021474 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sat, 15 Sep 2007 13:35:57 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAPZg60Y+FFrD/2dsb2JhbACBVw X-IronPort-AV: E=Sophos;i="4.20,258,1186351200"; d="scan'208";a="814410" Received: from oden.vtab.com ([62.20.90.195]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Sep 2007 13:36:18 +0200 Received: from oden.vtab.com (oden.vtab.com [127.0.0.1]) by oden.vtab.com (Postfix) with ESMTP id 831B326EEB3; Sat, 15 Sep 2007 13:36:17 +0200 (CEST) Received: from virtutech.se (alfredo.hq.vtech [10.0.0.52]) by oden.vtab.com (Postfix) with ESMTP id 64C9026EE8D; Sat, 15 Sep 2007 13:36:17 +0200 (CEST) Received: (from mattias@localhost) by virtutech.se (8.11.6/8.11.6) id l8FBaH813458; Sat, 15 Sep 2007 13:36:17 +0200 Date: Sat, 15 Sep 2007 13:36:17 +0200 Message-Id: <200709151136.l8FBaH813458@virtutech.se> From: "=?utf-8?b?TWF0dGlhcyBFbmdkZWfDpQ==?= =?utf-8?b?cmQ=?=" To: oliver@first.in-berlin.de Cc: caml-list@inria.fr In-reply-to: <1189852990.46ebb73e7edc3@webmail.in-berlin.de> (message from Oliver Bandel on Sat, 15 Sep 2007 12:43:10 +0200) Subject: Re: [Caml-list] Closing all open file descriptors Content-Type: text/plain; charset=iso-8859-1 References: <006b01c7f699$275fd6d0$017ca8c0@countertenor> <200709141000.l8EA04x12648@virtutech.se> <1189806728.46eb0288d38b8@webmail.in-berlin.de> <1189847741.46eba2bd9d121@webmail.in-berlin.de> <20070915192631.2384ae5a.mle+ocaml@mega-nerd.com> <1189852990.46ebb73e7edc3@webmail.in-berlin.de> X-Virus-Scanned: ClamAV using ClamSMTP X-j-chkmail-Score: MSGID : 46EBC39D.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 46EBC39D.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; mattias:01 mattias:01 descriptors:01 descriptors:01 caml-list:01 library:03 fork:05 approach:08 compose:08 file:11 does:14 ---:17 close:21 list:22 that:23 >If you have all your open descriptors in a list, >you can close them after a fork. That approach does not compose well --- descriptors opened by a library will be excluded. The only good way is to ask the system.