From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA00038; Fri, 24 Aug 2001 14:42:07 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA32730 for ; Fri, 24 Aug 2001 14:42:06 +0200 (MET DST) Received: from localhost.localdomain (Mix-Montsouris-110-4-31.abo.wanadoo.fr [193.248.191.31]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f7OCg5j03651 for ; Fri, 24 Aug 2001 14:42:05 +0200 (MET DST) Received: (qmail 24203 invoked by uid 1001); 24 Aug 2001 12:41:35 -0000 Date: Fri, 24 Aug 2001 14:41:35 +0200 From: Berke Durak To: caml-list@inria.fr Subject: [Caml-list] How to use both select and waitpid ? Message-ID: <20010824144135.C27538@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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