mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Use pidwait
This commit is contained in:
parent
d4599df5f8
commit
666578d470
@ -52,7 +52,5 @@ set -m
|
||||
)
|
||||
set +m
|
||||
|
||||
# Since we started the QEMU process with -m, we need to poll if it's still running
|
||||
while s=`ps -p "$(cat ${_QEMU_PID})" -o s=` && [[ "$s" && "$s" != 'Z' ]]; do
|
||||
sleep 1
|
||||
done
|
||||
pidwait -F "${_QEMU_PID}" &
|
||||
wait $!
|
||||
|
Loading…
x
Reference in New Issue
Block a user