Subject: | alarm and ularm return values are bogus |
The return value for alarm was broken by 1.9713. (As was setting the alarm)
The return value for ualarm was broken by 1.9716 (which fixed setting
the alarm)
Working version (1.9712):
$ perl5.8.9 -Mblib -MTime::HiRes=alarm -e 'warn $Time::HiRes::VERSION;
warn alarm 3; warn alarm 3; sleep 5'
1.9712 at -e line 1.
0 at -e line 1.
2.999941 at -e line 1.
Alarm clock
Completely broken (1.9713):
$ perl5.8.9 -Mblib -MTime::HiRes=alarm -e 'warn $Time::HiRes::VERSION;
warn alarm 3; warn alarm 3; sleep 5'
1.9713 at -e line 1.
4.94065645841247e-324 at -e line 1.
4.94065645841247e-324 at -e line 1.
Bad return value (1.9716):
$ perl5.8.9 -Mblib -MTime::HiRes=alarm -e 'warn $Time::HiRes::VERSION;
warn alarm 3; warn alarm 3; sleep 5'
1.9716 at -e line 1.
0 at -e line 1.
0 at -e line 1.
Alarm clock
Working version (1.9715):
$ perl5.8.9 -Mblib -MTime::HiRes=ualarm -e 'warn
$Time::HiRes::VERSION; warn ualarm 9e5; warn ualarm 9e5; sleep 5'
1.9715 at -e line 1.
0 at -e line 1.
899946 at -e line 1.
Alarm clock
Bad return value (1.9716):
$ perl5.8.9 -Mblib -MTime::HiRes=ualarm -e 'warn
$Time::HiRes::VERSION; warn ualarm 9e5; warn ualarm 9e5; sleep 5'
1.9716 at -e line 1.
0 at -e line 1.
0 at -e line 1.
Alarm clock
Code patch attached. I don't have a proper regression test (yet).
Subject: | HR |
Message body not shown because it is not plain text.