This fixes t/tail_notify.t on NetBSD 9.3 where the log file
is deleted and later recreated.
---
lib/PublicInbox/TailNotify.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/TailNotify.pm b/lib/PublicInbox/TailNotify.pm
index cbbc1041..f4ffb296 100644
--- a/lib/PublicInbox/TailNotify.pm
+++ b/lib/PublicInbox/TailNotify.pm
@@ -29,6 +29,7 @@ sub reopen_file ($) {
open my $fh, '<', $self->{fn} or return undef;
my @st = stat $fh or die "fstat($self->{fn}): $!";
$self->{ino_dev} = "@st[0, 1]";
+ $self->{inot}->watch($self->{fn}, $TAIL_MOD);
$self->{watch_fh} = $fh; # return value
}