develooper Front page | perl.perl5.porters | Postings from December 2008

Re: Possible bug: Perl 5.10.0 does not set $? & 128 when dumpingcore [PATCH]

Thread Previous | Thread Next
From:
Niko Tyni
Date:
December 18, 2008 01:38
Subject:
Re: Possible bug: Perl 5.10.0 does not set $? & 128 when dumpingcore [PATCH]
Message ID:
20081217202112.GA1163@rebekka
On Tue, Dec 16, 2008 at 02:34:03PM +0200, Niko Tyni wrote:

> I see <sys/wait.h> defines WCOREDUMP only with __USE_BSD here
> (Debian testing and unstable, glibc 2.7).

Further digging shows the problem is that <sys/wait.h> doesn't get
included at all. We do build with -D_GNU_SOURCE, which implies __USE_BSD.

Proposed patch attached, this fixes it for me on both 5.10.0 and blead.

% ./miniperl -le 'system($^X, "-e", q/kill 6,$$; sleep 1/); print "version=$] \$?=$? native=${^CHILD_ERROR_NATIVE}"'
version=5.011000 $?=134 native=134

(This is now also http://bugs.debian.org/509041 [Cc'd])
-- 
Niko Tyni   ntyni@debian.org

Thread Previous | Thread Next


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