Subject: | Possible bug in timeout_call |
Date: | Tue, 12 Mar 2019 08:11:27 +0000 |
To: | bug-Sys-SigAction [...] rt.cpan.org |
From: | Glenn Munroe <gwmunroe [...] gmail.com> |
Hello Lincoln,
Thanks for your excellent work on this module. This is my first bug report
for a CPAN module, so I hope I am following the correct protocol. I am
using Sys-SigAction-0.23 on RHEL 7 (3.10.0-862.el7.x86_64) running perl
5.16.3.
On line 169 there is a numeric comparison to a hash reference. This
produced warnings and was causing the routine to die with the hash
reference instead of returning the integer 1 indicating timeout. Replacing
the line:
die $@ if $@ and (not ref $@ or $@ != TIMEDOUT);
with
die $@ if $@ and (not ref $@ or %@);
solved the problem for me, but I'm not sure if this is the intended
behavior. Is this indeed a bug?
Regards,
--
Glenn