From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E819DBBAF for ; Thu, 28 Oct 2010 16:32:38 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An0BAIolyUzRVdW0jWdsb2JhbACDDJAUMoVsAYgCCBUBAQEBCQkKCQ8FH6QeiR08gheGKS6IVwEBAwWET3QEgVqIeYV0 X-IronPort-AV: E=Sophos;i="4.58,252,1286143200"; d="scan'208";a="76706353" Received: from mail-yx0-f180.google.com ([209.85.213.180]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Oct 2010 16:32:38 +0200 Received: by yxm8 with SMTP id 8so680271yxm.39 for ; Thu, 28 Oct 2010 07:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=EUFrvHW0fECpI+FKSnKZGLWYDJbldAwTpdQi2yk3KV4=; b=K2Olz/LVrRWzsQR2OHIsRYPH6HAmS3sKQzTQM2vpeL6ObluMG0RuLIcI0WvWHYb115 GZhPgdGLCZl6WKTrEoqeZeCkt0pU6c7UIignblhK9YiQEeyuIl9daDO41S+jyL3ST03r vp8kTkMuWg3piYLpNdYqTcOi9gGAefdz+8ZZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GZlE7WSt6pHvU4l9726r9cYgzCO4XL/iN/HIR2aeqyrqHf8mMwvg91pdpWobqpxYlB 7DbrYutgzAY3WTSuFyy9PR+/2DlNdBkIAZJxpLWdH2+iTfgKaMoMSqmK5EXhAsbQWe0+ lAWaZim+lD0oE7mIJTJhFjYXgcEQpVSQfySbc= MIME-Version: 1.0 Received: by 10.239.185.200 with SMTP id d8mr3186599hbh.145.1288276356558; Thu, 28 Oct 2010 07:32:36 -0700 (PDT) Received: by 10.239.189.6 with HTTP; Thu, 28 Oct 2010 07:32:36 -0700 (PDT) In-Reply-To: References: <20101028121810.GA32597@securactive.net> Date: Thu, 28 Oct 2010 10:32:36 -0400 Message-ID: Subject: Re: [Caml-list] Thread.delay to raise EINTR exception ? From: Niki Yoshiuchi To: OCaml mailing list Content-Type: multipart/alternative; boundary=001485f423129aeec40493ae36f5 X-Spam: no; 0.00; eintr:01 beginner's:01 ocaml:01 bug:01 beginner's:01 ocaml:01 bug:01 28,:98 28,:98 beginners:01 beginners:01 wrote:01 wrote:01 unix:01 exception:01 X-Attachments: cset="UTF-8" cset="UTF-8" --001485f423129aeec40493ae36f5 Content-Type: text/plain; charset=UTF-8 This is mentioned in "Unix system programming in Object Caml"* in section 4.5. The solution given in the book is wrap the function call in a try...with. It doesn't feel right to me either, but I don't know if there is a better alternative. *http://ocamlunix.forge.ocamlcore.org/ On Thu, Oct 28, 2010 at 9:02 AM, Paolo Donadeo wrote: > It's a known pitfall. Read this discussion of some months ago: > > > http://caml.inria.fr/pub/ml-archives/caml-list/2010/08/242cee79bb97e86bc93bc6bd88d2f256.en.html > > > -- > Paolo > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > --001485f423129aeec40493ae36f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This is mentioned in "Unix system programming in Object Caml"* in= section 4.5.=C2=A0 The solution given in the book is wrap the function cal= l in a try...with.=C2=A0 It doesn't feel right to me either, but I don&= #39;t know if there is a better alternative.

*http://ocamlunix.for= ge.ocamlcore.org/

On Thu, Oct 28, 201= 0 at 9:02 AM, Paolo Donadeo <p.donadeo@gmail.com> wrote:
It's a known = pitfall. Read this discussion of some months ago:

http://caml.inria.fr/pub= /ml-archives/caml-list/2010/08/242cee79bb97e86bc93bc6bd88d2f256.en.html=


--
Paolo

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.in= ria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

--001485f423129aeec40493ae36f5--