loop-rebuild: avoid polling (experiment)

This commit is contained in:
Junio C Hamano 2025-11-20 14:14:14 -08:00
parent 23c9d2bc9a
commit c002d8d0e2

View File

@ -1,5 +1,23 @@
#!/bin/sh
R=:rendezvous
if ! test -p "$R"
then
rm -f "$R"
mkfifo "$R" || exit
fi
export CC=clang
while cat "$R"
do
time nice -20 Meta/Dothem -j32 --meson CC="clang -O2" USE_ASCIIDOCTOR=
uptime; date
Meta/V
done
exit
ssleep () {
seconds=$1
now=$(date "+%s")