From a0fe051f8b2bcc919d67f822b674cdfe8cf1274b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 30 May 2025 12:19:11 -0400 Subject: tests/util: Wrap wait EINTR loop into a helper --- tests/run.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index 8d3a5d2..3ed2a9c 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -96,16 +96,13 @@ reap_test() { wait_test() { local pid line ret - while true; do + while :; do line=$((LINENO + 1)) - wait -n -ppid + _wait -n -ppid ret=$? if [ "${pid:-}" ]; then break - elif ((ret > 128)); then - # Interrupted by signal - continue else debug "${BASH_SOURCE[0]}" $line "${RED}error $ret${RST}" >&$DUPERR exit 1 -- cgit v1.2.3