Use pidwait

This commit is contained in:
Kroese 2023-04-17 12:49:35 +02:00 committed by GitHub
parent d4599df5f8
commit 666578d470

View File

@ -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 $!