mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 23:38:21 +00:00
compat.sh: terminate ssl_server2 cleanly
This commit is contained in:
parent
5f593f07f7
commit
c57e98b5fa
1 changed files with 8 additions and 1 deletions
|
@ -463,8 +463,15 @@ start_server() {
|
|||
sleep 1
|
||||
}
|
||||
|
||||
# terminate the running server
|
||||
# terminate the running server (try closing it cleanly if possible)
|
||||
stop_server() {
|
||||
case $SERVER_NAME in
|
||||
[Pp]olar*)
|
||||
echo SERVERQUIT | $OPENSSL s_client $O_CLIENT_ARGS >/dev/null 2>&1
|
||||
sleep 1
|
||||
;;
|
||||
esac
|
||||
|
||||
kill $PROCESS_ID 2>/dev/null
|
||||
wait $PROCESS_ID 2>/dev/null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue