Prevent the background test components from waiting forever for the following PV process to start.

This commit is contained in:
Andrew Wood
2024-12-15 15:00:51 +00:00
parent 25eaa2661a
commit f3e98da13b
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ seq 1 300 > "${workFile2}"
# NB we just export line to make shellcheck think it's used.
true > "${workFile3}"
(
while ! test -s "${workFile3}"; do sleep 0.1; done
while test -e "${workFile3}" && ! test -s "${workFile3}"; do sleep 0.1; done
export line
sleep 1
read -r line