[debhelper-devel] Bug#797904: Bug#797904: debhelper manpage: #DEBHELPER# in Perl: bad error handling
Niels Thykier
niels at thykier.net
Sun Sep 6 09:36:00 UTC 2015
On 2015-09-06 11:19, Jakub Wilk wrote:
>> 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
>
Thanks, corrected. :)
~Niels
More information about the debhelper-devel
mailing list