diff options
author | Eric Wong <e@80x24.org> | 2023-09-07 00:54:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-09-07 05:42:35 +0000 |
commit | 847bd6ea4385252528bad5a9079c97ab62dfa167 (patch) | |
tree | fdb7cf0323f580baba1b0c3a4b6c84ce0a68dfda /lib/PublicInbox | |
parent | 50c7179e5ed4c6c9d0d1e7b23592669e4b3dcd01 (diff) | |
download | public-inbox-847bd6ea4385252528bad5a9079c97ab62dfa167.tar.gz |
This fixes t/tail_notify.t on NetBSD 9.3 where the log file is deleted and later recreated.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/TailNotify.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 } |