about summary refs log tree commit homepage
path: root/lib/PublicInbox/Spawn.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-28 04:27:11 +0000
committerEric Wong <e@80x24.org>2016-02-28 04:27:39 +0000
commite5dd8584b5e798b3c391e4f3e71a8c9e97c0f9d9 (patch)
treec2fe4a07aa57c4b5a8f700a3d75d5b38e95f78fe /lib/PublicInbox/Spawn.pm
parenta4243710b01eee8e20b2d66fd81f810b9307bed5 (diff)
downloadpublic-inbox-e5dd8584b5e798b3c391e4f3e71a8c9e97c0f9d9.tar.gz
This is necessary since we want to be able to do arbitrary redirects
via the popen interface.  Oh well, we'll be a little slower for now
for users without vfork.  vfork users will get all the performance
benefits.
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r--lib/PublicInbox/Spawn.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index 72cd6c3c..51ad2692 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -165,11 +165,6 @@ sub spawn ($;$$) {
 
 sub popen_rd {
         my ($cmd, $env, $opts) = @_;
-        unless (wantarray || defined $vfork_spawn || defined $env) {
-                open my $fh, '-|', @$cmd or
-                        die('open `'.join(' ', @$cmd) . " pipe failed: $!\n");
-                return $fh
-        }
         pipe(my ($r, $w)) or die "pipe: $!\n";
         $opts ||= {};
         my $blocking = $opts->{Blocking};