Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the problem with interrupted recv
in perl before 5.14 if recv was interrupted in certain conditions it sets $! to 0 instead of expected EINTR. The following script demonstrates the issue, it works on 5.14 but fails if run by perl 5.10: use strict; use warnings; use RedisDB 2.07; my $pub = RedisDB->new; my $sub = RedisDB->new; $sub->subscribe('foo'); $sub->get_reply; local $SIG{ALRM} = sub { $pub->publish( 'foo', 'bar' ); }; alarm 2; $sub->get_reply; fixes #11
- Loading branch information