Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Niki Yoshiuchi <aplusbi@gmail.com>
To: OCaml mailing list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Thread.delay to raise EINTR exception ?
Date: Thu, 28 Oct 2010 10:32:36 -0400	[thread overview]
Message-ID: <AANLkTi=axtSeEdMFeWXAGopm_3WvUkvzh_O+vF2opDvJ@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikocz_RMsGHhqDQ6PYGJ+rJDDATChukseYbLJHH@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

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 <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.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 1725 bytes --]

  reply	other threads:[~2010-10-28 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-28 12:18 Cedric Cellier
2010-10-28 13:02 ` [Caml-list] " Paolo Donadeo
2010-10-28 14:32   ` Niki Yoshiuchi [this message]
2010-10-28 14:53 ` Cedric Cellier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=axtSeEdMFeWXAGopm_3WvUkvzh_O+vF2opDvJ@mail.gmail.com' \
    --to=aplusbi@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox