diff options
author | Eric Wong <e@80x24.org> | 2022-07-09 08:08:57 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-07-09 23:28:48 +0000 |
commit | d323a16ced5e3a77136a1ebca4a2f7d5678121c4 (patch) | |
tree | 6b9d3638ee71424ebe94e1c87d620803083a2b6b | |
parent | f7963248263d6c115275b2974ae02b424415f37b (diff) | |
download | public-inbox-d323a16ced5e3a77136a1ebca4a2f7d5678121c4.tar.gz |
Of course, waiting for inotify to become active can't rely on inotify, so we need to do a busy loop here, instead...
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 943dd2fa..ecf7a261 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -378,7 +378,7 @@ sub wait_for_tail { my @ino; do { @ino = grep { - readlink($_) =~ /\binotify\b/ + (readlink($_) // '') =~ /\binotify\b/ } glob("/proc/$tail_pid/fd/*"); } while (!@ino && time <= $end and tick); return if !@ino; |