Check for zombie process

This commit is contained in:
Kroese 2023-04-17 11:39:12 +02:00 committed by GitHub
parent f14d100e43
commit d4599df5f8

View File

@ -53,6 +53,6 @@ set -m
set +m set +m
# Since we started the QEMU process with -m, we need to poll if it's still running # Since we started the QEMU process with -m, we need to poll if it's still running
while [ -d "/proc/$(cat ${_QEMU_PID})" ]; do while s=`ps -p "$(cat ${_QEMU_PID})" -o s=` && [[ "$s" && "$s" != 'Z' ]]; do
sleep 1 sleep 1
done done