Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 39974 invoked from network); 21 Dec 2008 00:02:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2008 00:02:16 -0000 Received: (qmail 59473 invoked by uid 500); 21 Dec 2008 00:02:12 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 59447 invoked by uid 500); 21 Dec 2008 00:02:11 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 59438 invoked by uid 99); 21 Dec 2008 00:02:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Dec 2008 16:02:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.22.103.163] (HELO li16-163.members.linode.com) (64.22.103.163) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Dec 2008 00:02:05 +0000 Received: from localhost ([127.0.0.1]) by li16-163.members.linode.com with esmtp (Exim 4.69) (envelope-from ) id 1LEBkd-0003g0-Po for modperl@perl.apache.org; Sat, 20 Dec 2008 16:00:55 -0800 Date: Sat, 20 Dec 2008 16:00:55 -0800 (PST) From: Mark Hedges To: modperl@perl.apache.org Subject: Re: trapping signals in Apache::Test script to reap forks In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) X-Ray: Vision MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: hedges@scriptdolphin.org X-SA-Exim-Scanned: No (on li16-163.members.linode.com); SAEximRunCond expanded to false X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 19 Dec 2008, Mark Hedges wrote: > In order to do this I have to run a Net::OpenID::Server via > an HTTP::Server::Simple which forks the test script and runs > the test OpenID server into the background. > ... > Any idea how I could do this so the forked child of the > openid.t script will always exit cleanly on an error > condition? Nevermind, I figured this out, instead of sigtrap pragma I have to use fully qualified references to %HTTP::Server::Simple::SIG and exit on INT and I also set an alarm to exit in case something didn't work. Mark