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=1.2 required=5.0 tests=AWL,HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 967F3BC6B for ; Thu, 28 Jun 2007 13:33:16 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.231]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5SBXFVo010693 for ; Thu, 28 Jun 2007 13:33:16 +0200 Received: by nz-out-0506.google.com with SMTP id s1so246134nze for ; Thu, 28 Jun 2007 04:33:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Z3peM5zXw//id4TBoB7MaY36VG9bNHh1BxrTXh2K7JAGkTgYbxmdYr1VCiITugu7b30weXh8Kv1DRRQnUgjgqo26rZOJESN+2aJNPqpOqfQPnc4WmXbdeVMlcLaSdFKx4tMMSiUV5ta42lLG5GMy9oqgs1ziAB/LXzdOGLlB66Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=bYbuW1PdrvXNOmg84y2/IuuOwLi1MVYncRf+ZYbARwSAnVTEr06cCQF1MGQLyae+Rpa9s/AzOcfnlOwYmiVxxbTg4t17McDioAfp0Z/jem6BSFatFtn/0qvpcWCYA9Z710rIkLSCosY0GZZgX2WVYSFbM+D1ehLsxe+8Vd5/VGM= Received: by 10.115.14.1 with SMTP id r1mr1481272wai.1183030394909; Thu, 28 Jun 2007 04:33:14 -0700 (PDT) Received: by 10.115.58.4 with HTTP; Thu, 28 Jun 2007 04:33:14 -0700 (PDT) Message-ID: <891bd3390706280433u7b9c0ed6me56e8a6474c17310@mail.gmail.com> Date: Thu, 28 Jun 2007 07:33:14 -0400 From: "Yaron Minsky" Sender: yminsky@gmail.com To: caml-list Subject: Re: [Caml-list] Waiting for float time In-Reply-To: <4682E2D9.4050207@rftp.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42159_18114359.1183030394875" References: <4682DCDF.5000301@crans.org> <4682E2D9.4050207@rftp.com> X-Google-Sender-Auth: 5fe9092898d037ba X-Miltered: at discorde with ID 46839C7B.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; yaron:01 minsky:01 yminsky:01 ocaml:01 ocaml:01 crans:98 crans:98 idiom:01 idiom:01 wrote:01 wrote:01 unix:01 unix:01 exception:01 exception:01 ------=_Part_42159_18114359.1183030394875 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/27/07, Robert Roessler wrote: > > sayan@crans.org wrote: > > I believe the OCaml idiom for this is to use Unix.select with empty > lists for all THREE of the descriptor lists... and this does work on > Windows. Note, on Unix at least, you need to wrap the call to select in an exception handler, since select can be interrupted, at which point the call throws an exception. y ------=_Part_42159_18114359.1183030394875 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/27/07, Robert Roessler <roessler@rftp.com> wrote:
sayan@crans.org wrote:

I believe the OCaml idiom for this is to use Unix.select with empty
lists for all THREE of the descriptor lists... and this does work on
Windows.

Note, on Unix  at least, you need to wrap the call to select in an exception handler, since select can be interrupted, at which point the call throws an exception.

y


------=_Part_42159_18114359.1183030394875--