mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-27 20:24:55 +02:00
- Fix test to speed up common.sh script kill_pid.
This commit is contained in:
@@ -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.
|
||||
|
||||
Vendored
+3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user