]> Sergey Matveev's repositories - public-inbox.git/commit
t/lei-refresh-mail-sync: avoid kill+sleep loop
authorEric Wong <e@80x24.org>
Sun, 12 Feb 2023 03:12:03 +0000 (03:12 +0000)
committerEric Wong <e@80x24.org>
Sun, 12 Feb 2023 23:19:47 +0000 (23:19 +0000)
commitee8746e6db4dbe5a6cdb0d6080f467bc27693b3a
tree4e4bf24279a75b309665d55655d9f552e53da66e
parent69eb1cbf5fed2a311b5692b09a8d074745fe63ac
t/lei-refresh-mail-sync: avoid kill+sleep loop

While we can't waitpid() on daemonized process, we can abuse the
lack of FD_CLOEXEC to detect a process death.  This saves
roughly 400ms for this slow test.
lib/PublicInbox/TestCommon.pm
t/lei-refresh-mail-sync.t