about summary refs log tree commit homepage
path: root/lib/PublicInbox/Gcf2Client.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-07 21:24:08 +0000
committerEric Wong <e@80x24.org>2023-10-08 18:54:47 +0000
commit1661ff8e21f3cb1df1a3fc00d917f404f4eae734 (patch)
treebd2d06840b241b5f4546688fa07b1bf7790f4222 /lib/PublicInbox/Gcf2Client.pm
parent27423677034478018a202e5ddff02c5d2e0de061 (diff)
downloadpublic-inbox-1661ff8e21f3cb1df1a3fc00d917f404f4eae734.tar.gz
Since we deal with pipes (of either direction) and bidirectional
stream sockets for this class, it's better to remove the `Pipe'
from the name and replace it with `IO' to communicate that it
works for any form of IO::Handle-like object tied to a process.
Diffstat (limited to 'lib/PublicInbox/Gcf2Client.pm')
-rw-r--r--lib/PublicInbox/Gcf2Client.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Gcf2Client.pm b/lib/PublicInbox/Gcf2Client.pm
index 4a0348b4..f63a0335 100644
--- a/lib/PublicInbox/Gcf2Client.pm
+++ b/lib/PublicInbox/Gcf2Client.pm
@@ -10,7 +10,7 @@ use PublicInbox::Gcf2; # fails if Inline::C or libgit2-dev isn't available
 use PublicInbox::Spawn qw(spawn);
 use Socket qw(AF_UNIX SOCK_STREAM);
 use PublicInbox::Syscall qw(EPOLLIN);
-use PublicInbox::ProcessPipe;
+use PublicInbox::ProcessIO;
 use autodie qw(socketpair);
 
 # fields:
@@ -33,7 +33,7 @@ sub new  {
         my $cmd = [$^X, $^W ? ('-w') : (),
                         qw[-MPublicInbox::Gcf2 -e PublicInbox::Gcf2::loop]];
         my $pid = spawn($cmd, $env, $opt);
-        my $sock = PublicInbox::ProcessPipe->maybe_new($pid, $s1);
+        my $sock = PublicInbox::ProcessIO->maybe_new($pid, $s1);
         $self->{inflight} = [];
         $self->{epwatch} = \undef; # for Git->cleanup
         $self->SUPER::new($sock, EPOLLIN);