]> Sergey Matveev's repositories - public-inbox.git/commitdiff
DS: handle EINTR in IO::Poll path, too
authorEric Wong <e@80x24.org>
Wed, 8 May 2019 09:07:36 +0000 (09:07 +0000)
committerEric Wong <e@80x24.org>
Wed, 8 May 2019 18:16:40 +0000 (18:16 +0000)
IO::Poll::_poll returns -1, which is "true" to Perl.

cf. https://rt.cpan.org/Ticket/Display.html?id=129484

lib/PublicInbox/DS.pm

index ea09fc96ed6cc9f38af0d629c2d358d0b3ef8ec1..5dd1bb7cbf68637420dbca472cc1107c8de0faaa 100644 (file)
@@ -386,7 +386,7 @@ sub PollEventLoop {
         }
 
         my $count = IO::Poll::_poll($timeout, @poll);
-        unless ($count) {
+        unless ($count >= 0) {
             return unless PostEventLoop();
             next;
         }