mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 08:18:57 +00:00
ssl-opt.sh: Kill server via KILL signal if TERM doesn't succeed
This commit is contained in:
parent
cadb5bbe3c
commit
d82d84664a
1 changed files with 11 additions and 2 deletions
|
@ -447,10 +447,19 @@ run_test() {
|
||||||
|
|
||||||
# terminate the server (and the proxy)
|
# terminate the server (and the proxy)
|
||||||
kill $SRV_PID
|
kill $SRV_PID
|
||||||
wait $SRV_PID
|
sleep 0.01
|
||||||
|
if kill -0 $SRV_PID >/dev/null 2>&1; then
|
||||||
|
kill -KILL $SRV_PID
|
||||||
|
wait $SRV_PID
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$PXY_CMD" ]; then
|
if [ -n "$PXY_CMD" ]; then
|
||||||
kill $PXY_PID >/dev/null 2>&1
|
kill $PXY_PID >/dev/null 2>&1
|
||||||
wait $PXY_PID
|
sleep 0.01
|
||||||
|
if kill -0 $PXY_PID >/dev/null 2>&1; then
|
||||||
|
kill -KILL $pXY_PID
|
||||||
|
wait $PXY_PID
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# retry only on timeouts
|
# retry only on timeouts
|
||||||
|
|
Loading…
Reference in a new issue