diff options
author | Eric Wong <e@80x24.org> | 2023-10-07 21:24:08 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-08 18:54:47 +0000 |
commit | 1661ff8e21f3cb1df1a3fc00d917f404f4eae734 (patch) | |
tree | bd2d06840b241b5f4546688fa07b1bf7790f4222 /lib/PublicInbox/Spawn.pm | |
parent | 27423677034478018a202e5ddff02c5d2e0de061 (diff) | |
download | public-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/Spawn.pm')
-rw-r--r-- | lib/PublicInbox/Spawn.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index 4c7e0f80..cb8b21c6 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -21,7 +21,7 @@ use PublicInbox::Lock; use Fcntl qw(SEEK_SET); use IO::Handle (); use Carp qw(croak); -use PublicInbox::ProcessPipe; +use PublicInbox::ProcessIO; our @EXPORT_OK = qw(which spawn popen_rd popen_wr run_die run_wait); our @RLIMITS = qw(RLIMIT_CPU RLIMIT_CORE RLIMIT_DATA); @@ -368,13 +368,13 @@ sub spawn ($;$$) { sub popen_rd { my ($cmd, $env, $opt) = @_; pipe(my $r, local $opt->{1}) or die "pipe: $!\n"; - PublicInbox::ProcessPipe->maybe_new(spawn($cmd, $env, $opt), $r, $opt) + PublicInbox::ProcessIO->maybe_new(spawn($cmd, $env, $opt), $r, $opt) } sub popen_wr { my ($cmd, $env, $opt) = @_; pipe(local $opt->{0}, my $w) or die "pipe: $!\n"; - PublicInbox::ProcessPipe->maybe_new(spawn($cmd, $env, $opt), $w, $opt) + PublicInbox::ProcessIO->maybe_new(spawn($cmd, $env, $opt), $w, $opt) } sub run_wait ($;$$) { |