about summary refs log tree commit homepage
path: root/lib/PublicInbox/InputPipe.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/InputPipe.pm')
-rw-r--r--lib/PublicInbox/InputPipe.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/InputPipe.pm b/lib/PublicInbox/InputPipe.pm
index 00813a07..e1e26e20 100644
--- a/lib/PublicInbox/InputPipe.pm
+++ b/lib/PublicInbox/InputPipe.pm
@@ -18,7 +18,7 @@ sub consume {
 
 sub event_step {
         my ($self) = @_;
-        my $r = sysread($self->{sock}, my $rbuf, 65536);
+        my $r = sysread($self->{sock} // return, my $rbuf, 65536);
         if ($r) {
                 $self->{cb}->(@{$self->{args} // []}, $rbuf);
                 return $self->requeue; # may be regular file or pipe