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/Spamcheck | |
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/Spamcheck')
-rw-r--r-- | lib/PublicInbox/Spamcheck/Spamc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Spamcheck/Spamc.pm b/lib/PublicInbox/Spamcheck/Spamc.pm index 726866c8..cba33a66 100644 --- a/lib/PublicInbox/Spamcheck/Spamc.pm +++ b/lib/PublicInbox/Spamcheck/Spamc.pm @@ -27,7 +27,7 @@ sub spamcheck { $out = \$buf; } $$out = do { local $/; <$fh> }; - close $fh; # PublicInbox::ProcessPipe::CLOSE + close $fh; # PublicInbox::ProcessIO::CLOSE ($? || $$out eq '') ? 0 : 1; } |