Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 1999 18:59:45 -0700 (PDT)
From:      Alex Belits <abelits@phobos.illtel.denver.co.us>
To:        Simon Shapiro <shimon@simon-shapiro.org>
Cc:        Don Lewis <Don.Lewis@tsc.tdk.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: wait4 - Proof I am stupid
Message-ID:  <Pine.LNX.4.02A.9904071859090.15455-100000@phobos.illtel.denver.co.us>
In-Reply-To: <XFMail.990407214959.shimon@simon-shapiro.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Apr 1999, Simon Shapiro wrote:

> In case you are right, how would you go about accomplishing what I want:
> 
> I have a set of worker processes, which need to get certain signals.
> They are being managed by a monitor process which may need to get the
> same signals but react quite differently.  Also, the monitor must wait
> for all the workers to exit, before doing some other work.
> 
> I could make the shared memory channel more complex and signal
> completion that way, but this is uncertain and ugly (if a grandson dies
> without first telling grandpa ``I'm gone'' how is grandpa to know?

  Use pipes and poll()/select() on them.

-- 
Alex

----------------------------------------------------------------------
 Excellent.. now give users the option to cut your hair you hippie!
                                                  -- Anonymous Coward



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.02A.9904071859090.15455-100000>