perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: t/perl/ithreads.t revisited
Date Mon, 13 Dec 2004 18:19:25 GMT
Steve Hay wrote:
> Stas Bekman wrote:
> 
> 
>>Steve Hay wrote:
>> 
>>
>>
>>>>>So the offending SV is an error  message itself, caused by the exit in

>>>>>these lines in Apache/Test.pm:
>>>>>
>>>>>     # trying to emulate a dual variable (ala errno)
>>>>>     unless ($meets_condition) {
>>>>>         my $reason = join ', ',
>>>>>           @SkipReasons ? @SkipReasons : "no reason given";
>>>>>         print "1..0 # skipped: $reason\n";
>>>>>         @SkipReasons = (); # reset
>>>>>         exit; #XXX: Apache->exit
>>>>>     }
>>>>>       
>>>>>
>>
>>Any difference if you call CORE::exit() here?
>>
> 
> Oh yes!  That kills the server itself!  i.e. api.t now crashes the 
> server in the course of executing its test plan, and ithreads doesn't 
> even have a server to play with :(

Crashes? CORE::exit() works fine here (happened to work fine?). I guess it 
should be a problem since it'll kill any other running threads.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message