]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix test to speed up common.sh script kill_pid.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Apr 2025 09:37:42 +0000 (11:37 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Apr 2025 09:37:42 +0000 (11:37 +0200)
doc/Changelog
testdata/common.sh

index e60226696a46c167a20b6766ce699b648f3c3485..40c58eb481f187f8ff3cb2fd5e1e9acbacfd0bb1 100644 (file)
@@ -3,6 +3,7 @@
        - Fix comment name in the rpz nsdname test.
        - Fix nettle compile for warnings and ticket keys.
        - Fix redis_replica test for unused option defaults and log printout.
+       - Fix test to speed up common.sh script kill_pid.
 
 4 April 2025: Yorgos
        - Merge #1019: Redis read-only replica support.
index bf2d301eb815d1370633b1fbe31fccf59c37356f..3f9f9a894e48b4ea45494acfbf5fe310befa4d37 100644 (file)
@@ -309,6 +309,7 @@ kill_pid () {
        local WAIT_THRES=30
        local try
        kill $1
+       sleep .001
        for (( try=0 ; try <= $MAX_DOWN_TRY ; try++ )) ; do
                if kill -0 $1 >/dev/null 2>&1; then
                        :
@@ -322,6 +323,8 @@ kill_pid () {
                fi
                if test $try -ge $WAIT_THRES; then
                        sleep 1
+               else
+                       sleep .01
                fi
                # re-send the signal
                kill $1 >/dev/null 2>&1