about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-25 10:17:14 +0000
committerEric Wong <e@80x24.org>2023-09-25 23:14:45 +0000
commit80b7833152316552d75103dec6666701242513e1 (patch)
tree9f078a3b56c966fabb2a7947834ad66d579fbff9 /xt
parent8addd1ec64c6e8b4b49e6a4dc8884fd2ee65fe49 (diff)
downloadpublic-inbox-80b7833152316552d75103dec6666701242513e1.tar.gz
These generalize the idiom from t/httpd-unix.t and allows them
to be used for all the lei daemon shutdown in tests.  This
speeds up the serialized run of `prove -lvw t/lei.t t/lei-daemon.t'
by roughly 8-9% or so since we're no longer sleeping and killing
the daemon in a loop.

Parallelized `make check' and `make check-run' don't show much
difference, yet.

Note that we do eliminate some kill(2) checks since those still
require retries an delays.  We assume the kernel auto-closing
FDs on process exit is a strong-enough guarantee that the
process will soon be reaped by PID:1.

These will be useful for the FUSE daemons, as well.

We'll also start introducing more uses of autodie to simplify
our code.
Diffstat (limited to 'xt')
0 files changed, 0 insertions, 0 deletions