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

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

Thread Previous
From:
Michael G Schwern
Date:
October 11, 2003 01:20
Subject:
Re: [perl #24174] perl-5.8.0-55 exit bug
Message ID:
20031011081742.GF2952@windhund.schwern.org
On Thu, Oct 09, 2003 at 05:23:58PM -0000, Doug Sibley wrote:
> In perl-5.8.0-55 (and others likely), when I do a perl program:

5.8.0-55 is not a version number used by Perl.  It sounds like some
number assigned by your operating system vendor.  Is this from a Redhat
package?

> sleep;
> exit; # or exit(0);
> 
> then give a SIGALRM to to the process, I always get the exit code of 14
> (from the following c program):

I can repeat this with 5.6.0 and 5.8.0 on OS X.

> I think this is a bug in perl.

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.


-- 
Michael G Schwern        schwern@pobox.com  http://www.pobox.com/~schwern/
I do have a cause though.  It is obscenity.  I'm for it.
    -- Tom Lehrer "Smut"

Thread Previous


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