From b9a3d9119f7c5f6e26c3cd278aadc146ffe0c26f Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 16 Apr 2023 14:43:43 +0200 Subject: [PATCH] Prevent polling --- run/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/run.sh b/run/run.sh index 343e679..aa497d3 100755 --- a/run/run.sh +++ b/run/run.sh @@ -57,7 +57,7 @@ set -m ) set +m -# Since we have to start the process with -m, we need to poll every intervall if it's still running while [ -d "/proc/$(cat ${_QEMU_PID})" ]; do - sleep 1 + sleep infinity & + wait $! done