perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hedges <hed...@scriptdolphin.org>
Subject Re: trapping signals in Apache::Test script to reap forks
Date Sun, 21 Dec 2008 00:00:55 GMT


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

Mime
View raw message