develooper Front page | perl.perl6.compiler | Postings from March 2018

[perl #132012] [SEVERE] Numeric values of signals are wrong (say+SIGUSR1)

From:
Aleks-Daniel Jakimenko-Aleksejev via RT
Date:
March 4, 2018 08:33
Subject:
[perl #132012] [SEVERE] Numeric values of signals are wrong (say+SIGUSR1)
Message ID:
rt-4.0.24-29557-1520152355-57.132012-80-0@perl.org
Further discussion on https://github.com/rakudo/rakudo/issues/1588

On 2017-10-18 03:46:20, cpan@zoffix.com wrote:
> On Sat, 14 Oct 2017 08:29:50 -0700, cpan@zoffix.com wrote:
> > Something fishy going on with the Signals enum. If that's fixed then
> > the
> > regression you pointed out will be fixed as well, as the new method
> > simply
> > uses enum's `.value` to get the signal number:
> >
> > <Zoffix__> c: 79b8ab9d3f^,79b8ab9d3f,HEAD say SIGUSR1.Numeric; say
> > SIGUSR1.value; say $*KERNEL.signal: SIGUSR1
> > <committable6> Zoffix__, ¦79b8ab9d3f^: «30␤30␤10»
> > ¦79b8ab9,HEAD(cc6c055): «30␤30␤30»
>
>
> There's also a failing spectest on Windows that expects both of these
> to give same value (on and Linux, they do):
>
> C:\rakudo>perl6 -e "$*KERNEL.signal('SIGHUP').say"
> 3
>
> C:\rakudo>perl6 -e "$*KERNEL.signal(SIGHUP).say"
> 1




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