]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
qspawn: avoid redundantly setting O_NONBLOCK
authorEric Wong <e@80x24.org>
Wed, 3 Jul 2024 10:52:02 +0000 (10:52 +0000)
committerEric Wong <e@80x24.org>
Thu, 4 Jul 2024 02:21:25 +0000 (02:21 +0000)
PublicInbox::InputPipe::consume already sets it when it sees
a pipe or socket.

lib/PublicInbox/Qspawn.pm

index 0bf857c6cf9fc9a267e1d841b9739b44bd795024..cde45b42390ff672a0a0f153c8a6569b7fd44e07 100644 (file)
@@ -245,7 +245,6 @@ sub _yield_start { # may run later, much later...
        my ($self) = @_;
        if ($self->{psgi_env}->{'pi-httpd.async'}) {
                my $rpipe = $self->{rpipe};
-               $rpipe->blocking(0);
                PublicInbox::InputPipe::consume($rpipe, \&ipipe_cb, $self);
        } else {
                require PublicInbox::GetlineResponse;