caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Berke Durak <berke@altern.org>
To: caml-list@inria.fr
Subject: [Caml-list] How to use both select and waitpid ?
Date: Fri, 24 Aug 2001 14:41:35 +0200	[thread overview]
Message-ID: <20010824144135.C27538@localhost.localdomain> (raw)

Ok it's not absolutely Caml-specific, but here's my problem.

I'm doing a sort of network server that forks some children and
processes their output. So I need to do asynchronous I/O on sockets
(which implies use of Unix.select) but I also need to waitpid for
children. How do I do this ? I was hoping that select would return
with EINTR on receipt of SIGCHLD, but this isn't the case (even if
I've unblocked the signal and set its handler to something). Could
some Unix guru explain me this ? Thanks a lot.
--
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-24 12:42 UTC|newest]

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

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=20010824144135.C27538@localhost.localdomain \
    --to=berke@altern.org \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).