]> Sergey Matveev's repositories - public-inbox.git/commitdiff
httpd/async: remove EINTR check
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:23 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:26 +0000 (05:26 +0000)
This pipe is always non-blocking when run under public-inbox-httpd
and it won't fail with EINTR in that case

lib/PublicInbox/HTTPD/Async.pm

index f32ef0093869a1e910ed3145e283d3b52ba8e4bc..3eb7f75a4eb5932441fcf7fb2551bc528cef53bf 100644 (file)
@@ -57,7 +57,7 @@ sub main_cb ($$$) {
                        }
                        # fall through to close below...
                } elsif (!defined $r) {
-                       return restart_read($self) if $!{EAGAIN} || $!{EINTR};
+                       return restart_read($self) if $!{EAGAIN};
                }
 
                # Done! Error handling will happen in $fh->close