[debhelper-devel] Bug#797904: debhelper manpage: #DEBHELPER# in Perl: bad error handling

Jakub Wilk jwilk at debian.org
Sun Sep 6 09:19:40 UTC 2015


>my $signal = $? & 0xff;

This is almost right. :) You need only 7 bits to get the signal number. 
The eighth bit is on iff core was dumped:

$ ulimit -c unlimited
$ perl -E 'system("kill -11 \$\$"); say $? & 0xff, ", ", $? & 0x7f'
139, 11

-- 
Jakub Wilk




More information about the debhelper-devel mailing list