mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 16:49:30 +01:00
Use pidwait
This commit is contained in:
1 parent
d4599df5f8
commit
666578d470
1 file changed
+2
-4
+2
-4
@@ -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 $!
|
||||
Reference in new issue
Block a user