Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 1996 21:15:16 +0200 (MET DST)
From:      hm@kts.org (Hellmuth Michaelis)
To:        brandon@tombstone.sunrem.com (Brandon Gillespie)
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: handling SIGCHLD with multiple children
Message-ID:  <m0udiFg-00000AC@ernie.kts.org>
In-Reply-To: <Pine.BSF.3.91.960709122409.4725A-100000@tombstone.sunrem.com> from "Brandon Gillespie" at Jul 9, 96 12:26:35 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Brandon Gillespie wrote:
> 
> Is there _ANY_ way of finding what child sent a SIGCHLD signal to the 
> parent process?

Call waitpid in the handler, it returns the pid of the child which caused
the signal.

hellmuth
-- 
Hellmuth Michaelis                hm@kts.org                    Hamburg, Europe
                                              (A)bort, (R)etry, (I)nstall BSD ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0udiFg-00000AC>