Closed vsespb closed 10 years ago
maybe related https://rt.perl.org/Ticket/Display.html?id=93428 i.e. use of select() instead of pselect() (however I am not C programmer so not sure)
pr #12 will fix this. try it please.
LGTM
thx. I merged #12 and released Redis::Fast 0.0.9.
problem in 0.06 and 0.05
to terminate this script I use Ctrl-C. Often (~ 20% cases) I need press Ctrl-C twice to terminate.
but if I replace
$redis->blpop("notakey", 10);
with<>;
(i.e. readline from stdin), Ctrl-C works always. i.e. perl io works well with signals.this code looks strange, but I reduced it from real code, which just tries to catch SIGUSR (and SIGINT just in case) and kill all child processes.
perl 5.14 from Ubuntu 12.04
also, sometimes segfaults
Reproducible in 0.05, 0.06, 0.08. I tried 0.07 - don't installs. 0.08 - same + crash from issue #9 ), and btw 0.05 was before issue #5.