about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-20 07:39:09 +0000
committerEric Wong <e@80x24.org>2023-11-20 15:33:07 +0000
commit2d86b9efd38ec4e686cca098efad92541f156973 (patch)
treec78fce57c6463f2d445c59c8c66ff775c6532644 /lib/PublicInbox/TestCommon.pm
parent9005cb3dced86b78715fef0472a83813003e8e0d (diff)
downloadpublic-inbox-2d86b9efd38ec4e686cca098efad92541f156973.tar.gz
We want to use the filenames tail will watch, not the number of
args passed to the `tail_f' subroutine.

Fixes: 9231d2e7b93f (tests: map CLOFORK->FD_CLOEXEC temporarily for `tail -f')
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index 8bfa30f2..0d17e6e7 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -512,7 +512,7 @@ sub tail_f (@) {
         while (my ($io, $fl) = splice(@cfmap, 0, 2)) {
                 fcntl($io, F_SETFD, $fl);
         }
-        wait_for_tail($pid, scalar @_);
+        wait_for_tail($pid, scalar @f);
         require PublicInbox::AutoReap;
         PublicInbox::AutoReap->new($pid, \&wait_for_tail);
 }