Unverified Commit b68e2a79 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Use pidwait

parent 73106fd0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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 $!