develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24174] perl-5.8.0-55 exit bug

From:
Doug Sibley
Date:
October 13, 2003 04:00
Subject:
Re: [perl #24174] perl-5.8.0-55 exit bug
Message ID:
1066034467.31557.4.camel@ouse.dsl.local
http://www.perl.com/doc/manual/html/pod/perlfunc/sleep.html

says "May be interrupted if the process receives a signal such as
SIGALRM" (as do the O'Reilly series of perl books) which led me to
believe that I could sleep until I sent a SIGALRM at which point the
process would continue. 

You may wish to update either the behavior or comments of the sleep
function.

- Doug

On Sat, 2003-10-11 at 09:20, Michael G Schwern wrote:
> Doesn't seem like one to me.  The program was killed by a SIGALRM and
> exited abnormally.  Your exit(0) is never reached.
> 
> perlipc states that Perl "does the default thing" to handle a signal if
> you don't tell it otherwise.  The OS X (ie. BSD) signals(3) man page states 
> that the default action for SIGALRM is to terminate the process.
-- 
Doug Sibley <das@decisionsoft.com>




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About