Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 20633 invoked from network); 5 Jan 2005 16:51:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Jan 2005 16:51:05 -0000 Received: (qmail 96854 invoked by uid 500); 5 Jan 2005 16:50:52 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 96786 invoked by uid 500); 5 Jan 2005 16:50:52 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 96710 invoked by uid 99); 5 Jan 2005 16:50:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.logilune.com (HELO mail.logilune.com) (195.80.154.36) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 05 Jan 2005 08:50:46 -0800 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 5B0B81E1AD2; Wed, 5 Jan 2005 17:50:39 +0100 (CET) Message-ID: <41DC1ADE.4080701@stason.org> Date: Wed, 05 Jan 2005 11:50:38 -0500 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Eric Cholet Cc: dev@perl.apache.org Subject: Re: t/perl/signals failure References: <41DC0E6A.6050805@stason.org> <534C8C05-5F33-11D9-AB47-000D9349CCF2@logilune.com> <41DC13C1.8070700@stason.org> <5665B114-5F39-11D9-AB47-000D9349CCF2@logilune.com> In-Reply-To: <5665B114-5F39-11D9-AB47-000D9349CCF2@logilune.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Eric Cholet wrote: > Le 5 janv. 05, � 17:41, Eric Cholet a �crit : > >> Le 5 janv. 05, � 17:20, Stas Bekman a �crit : >> >>> As I've followed up, you didn't miss anything. As I'm not on your >>> platform all I can suggest is to dig into the code, i.e. >>> t/response/TestPerl/signals.pm >> >> >> Thanks, here's what I am seeing in that code: >> >> if (!$static) { >> local $ENV{PERL_SIGNALS} = "unsafe"; >> >> eval { >> local $SIG{ALRM} = sub { die "alarm" }; >> alarm 2; >> run_for_5_sec(); >> alarm 0; >> }; >> ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG"; >> } >> >> run_for_5_sec() runs for about 2 seconds, and then nothing happens. In >> the signal handler I replaced die with warn, but the warn doesn't happen. > > > I forgot to mention that after those 2 seconds, I see this is the error > log: > > [Wed Jan 05 17:36:54 2005] [notice] child pid 29676 exit signal Alarm > clock (14) That probably means that Apache installs its own sighandler or something like that? It certainly shows that a user can't use perl's ALRM on MaxOSX. Please post a skip patch? The POSIX works right? -- __________________________________________________________________ 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