From efa6badfb6450159587e8bb7ba77ab246f501b0c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 10 Jul 2024 18:12:01 +0000 Subject: [PATCH] make.sh: Only catch the error code that triggered the timer Signed-off-by: Michael Tremer --- make.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/make.sh b/make.sh index dfc65b485..69e1fd7e4 100755 --- a/make.sh +++ b/make.sh @@ -812,16 +812,18 @@ execute() { # Store the return code r="$?" - # If the return code is >= 128, wait has been interrupted by the timer - if [ "${r}" -ge 128 ]; then - # Call the timer callback - if [ -n "${timer}" ]; then - "${timer}" - fi - - # Go back and wait - continue - fi + case "${r}" in + # Code means that we have received SIGUSR1 from the timer + 138) + # Call the timer callback + if [ -n "${timer}" ]; then + "${timer}" + fi + + # Go back and wait + continue + ;; + esac break done -- 2.39.5