mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
fix: Trap exit code (#592)
This commit is contained in:
parent
fdbff4879b
commit
7790f81d15
@ -98,7 +98,6 @@ terminal() {
|
||||
|
||||
_graceful_shutdown() {
|
||||
|
||||
local cnt=0
|
||||
local code=$?
|
||||
local pid url response
|
||||
|
||||
@ -144,6 +143,8 @@ _graceful_shutdown() {
|
||||
|
||||
fi
|
||||
|
||||
local cnt=0
|
||||
|
||||
while [ "$cnt" -lt "$QEMU_TIMEOUT" ]; do
|
||||
|
||||
! isAlive "$pid" && break
|
||||
|
Loading…
Reference in New Issue
Block a user