caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Berke Durak <berke@altern.org>
To: Gerd Stolpmann <info@gerd-stolpmann.de>
Cc: caml-list@inria.fr
Subject: [Caml-list] Re: How to use both select and waitpid ?
Date: Sat, 25 Aug 2001 14:53:44 +0200	[thread overview]
Message-ID: <20010825145344.B24706@localhost.localdomain> (raw)
In-Reply-To: <01082415463809.02716@ice>; from info@gerd-stolpmann.de on Fri, Aug 24, 2001 at 03:32:45PM +0200

On Fri, Aug 24, 2001 at 03:32:45PM +0200, Gerd Stolpmann wrote:
> For operating systems with POSIX signals, it should work. You need an
> (empty) SIGCHLD signal handler.
> 
> For other operating systems, things may be different. Historically, the BSD
> systems automatically restarted system calls instead of reporting EINTR, and
> you needed to set a flag to avoid that. However, current BSD systems base on
> POSIX signals, too, and restarting does not happen.
> 
> The caml runtime tries to find out whether POSIX signals are available, and
> uses them if possible. If not, it falls back to ANSI-C signals which don't
> specify what to do.
> 
> So your problem depends on the OS, and on whether the caml runtime thinks that
> POSIX signals are available or not. You can check the latter by looking into
> config/s.h (after calling "configure" on the caml sources) and
> checking whether POSIX_SIGNALS is defined.

Thanks ! I've checked config/s.h, POSIX_SIGNALS is indeed defined (I
use OpenBSD 2.9), it works (select raises Unix_error(EINTR,_,_)). I
don't know why it didn't work at work (I used Linux, but that's not
exactly an old BSD system).
--
Berke
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2001-08-25 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-24 12:41 [Caml-list] " Berke Durak
2001-08-24 13:32 ` Gerd Stolpmann
2001-08-25 12:53   ` Berke Durak [this message]

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=20010825145344.B24706@localhost.localdomain \
    --to=berke@altern.org \
    --cc=caml-list@inria.fr \
    --cc=info@gerd-stolpmann.de \
    /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;
as well as URLs for NNTP newsgroup(s).