about summary refs log tree commit homepage
path: root/lib/PublicInbox/Spawn.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-11 07:20:49 +0000
committerEric Wong <e@80x24.org>2023-10-11 22:10:42 +0000
commit01e282ff7524256e8cc8e32a10baaa642ee76b70 (patch)
tree9cb80a0ca5ac3b605f1231cb372b8966788bc385 /lib/PublicInbox/Spawn.pm
parentfa8bce03925461ef47bb8c7f96e20263da93a825 (diff)
downloadpublic-inbox-01e282ff7524256e8cc8e32a10baaa642ee76b70.tar.gz
This required fixing binmode support a few commits ago, along
with properly enabling autoflush in popen_wr instead of setting
it on the wrapper ProcessIO class.
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r--lib/PublicInbox/Spawn.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index 265638fe..106f5e01 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -376,6 +376,7 @@ sub popen_rd {
 sub popen_wr {
         my ($cmd, $env, $opt, @cb_arg) = @_;
         pipe(local $opt->{0}, my $w) or die "pipe: $!\n";
+        $w->autoflush(1);
         my $pid = spawn($cmd, $env, $opt);
         PublicInbox::ProcessIO->maybe_new($pid, $w, @cb_arg)
 }