From c3096cbb74d860e3f3f7b28f1962a96430705e1c Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 16 Apr 2023 14:42:24 +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 f09f888..6d1d357 100755 --- a/run/run.sh +++ b/run/run.sh @@ -43,7 +43,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