]> Sergey Matveev's repositories - public-inbox.git/commit
testcommon: speed up wait_for_tail() on GNU/Linux
authorEric Wong <e@yhbt.net>
Sat, 30 May 2020 08:51:10 +0000 (08:51 +0000)
committerEric Wong <e@yhbt.net>
Sun, 31 May 2020 17:52:05 +0000 (17:52 +0000)
commita73957b5b05f2a00f7a85353b1658b6d8cde05ae
tree48480d3cd9680bc3d9bc0df70f2ecfce09bf786b
parent846161e3d1207d59f62b3a6718221d6f5ba2b94f
testcommon: speed up wait_for_tail() on GNU/Linux

Somewhat recent versions of GNU tail(1) use inotify(7) on Linux;
so don't penalize hackers using TAIL='tail -F' to run their tests
with extra delays.

Ironically, we still need to busy loop on /proc/$TAIL_PID/{fd,fdinfo}
since inotify doesn't seem to support procfs.
lib/PublicInbox/TestCommon.pm