Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 13313 invoked from network); 6 Jul 2006 04:57:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jul 2006 04:57:04 -0000 Received: (qmail 466 invoked by uid 500); 6 Jul 2006 04:56:58 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 235 invoked by uid 500); 6 Jul 2006 04:56:57 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Delivered-To: moderator for embperl@perl.apache.org Received: (qmail 26848 invoked by uid 99); 4 Jul 2006 15:45:06 -0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of guslees@gmail.com designates 64.233.166.183 as permitted sender) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=TNzvYHaL7DeVhSE7uN3ayHNo8e8UZoWQ+YylBBRY5Ck0y5TvY2Dxvy6sHloIEsoxpf3UR7KLyKGXe0ZPjtTzN6pe0VJ4nbdpqQVdfTshGgBA+rKMi6l+CJExhab6LjGPFuXSMjHd2CKSj/kQOCRgQJLmwxTHozbBEq4mK6pB9q4= Message-ID: Date: Tue, 4 Jul 2006 16:44:45 +0100 From: "Angus Lees" Sender: guslees@gmail.com To: matthew@invisiblesun.net Subject: Re: Global $SIG{CHLD} safe in mod_perl 1.28 with Apache 1.3? Cc: embperl@perl.apache.org In-Reply-To: <20060630182710.78956.qmail@web32501.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_67143_26208453.1152027885274" References: <20060630182710.78956.qmail@web32501.mail.mud.yahoo.com> X-Google-Sender-Auth: b84e53a5154f52f8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_67143_26208453.1152027885274 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/30/06, Matthew Smith wrote: > > If I set a global SIG{CHLD} = IGNORE is there any > possiblity of it propigating to the ultimate parent, > and thus to all the child processes? I'm worried that > if I use the global (even though that's what Stas > Bekmen does in his mod_perl book example) it could > possibly cause problems with the way apache forks it's > own worker processes. No it can't propagate to the other children via the parent - there is no mechanism in Unix for this to happen. However if you keep setting SIGCHLD to IGNORE, then eventually you will have modified all the apache children processes yourself (without touching the parent). -- - Gus ------=_Part_67143_26208453.1152027885274 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/30/06, Matthew Smith <matthewi33@yahoo.com> wrote:
If I set a global SIG{CHLD} = IGNORE is there any
possiblity of it propigating to the ultimate parent,
and thus to all the child processes?  I'm worried that
if I use the global (even though that's what Stas
Bekmen does in his mod_perl book example) it could
possibly cause problems with the way apache forks it's
own worker processes.

No it can't propagate to the other children via the parent - there is no mechanism in Unix  for this to happen.  However if you keep setting SIGCHLD to IGNORE, then eventually you will have modified all the apache children processes yourself (without touching the parent).

--
- Gus ------=_Part_67143_26208453.1152027885274--