From: Eric Wong Date: Mon, 20 Nov 2023 07:39:09 +0000 (+0000) Subject: test_common: fix excessive wait for GNU tail inotify X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d86b9efd38ec4e686cca098efad92541f156973;p=thirdparty%2Fpublic-inbox.git test_common: fix excessive wait for GNU tail inotify 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') --- diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 8bfa30f26..0d17e6e7e 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); }