]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Spawn.pm
reduce calls to close unless error checks are needed
[public-inbox.git] / lib / PublicInbox / Spawn.pm
index 51ad2692b82e6ff3d6ec49abfda6f02d4d801ea3..02c5446f6dcf0f965471498656a60fb9a720ad07 100644 (file)
@@ -171,7 +171,6 @@ sub popen_rd {
        $r->blocking($blocking) if defined $blocking;
        $opts->{1} = fileno($w);
        my $pid = spawn($cmd, $env, $opts);
-       close $w;
        return ($r, $pid) if wantarray;
        my $ret = gensym;
        tie *$ret, 'PublicInbox::ProcessPipe', $pid, $r;