From 1661ff8e21f3cb1df1a3fc00d917f404f4eae734 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 7 Oct 2023 21:24:08 +0000 Subject: rename ProcessPipe to ProcessIO 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. --- lib/PublicInbox/Gcf2Client.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/Gcf2Client.pm') 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); -- cgit v1.2.3-24-ge0c7