From 41090b3287c839c0daf0e46fd1e78796cea3a4fa Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 10 Apr 2023 21:12:10 +0200 Subject: [PATCH] Allow for gracefull shutdows --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 09bc070..bda0066 100755 --- a/run.sh +++ b/run.sh @@ -38,7 +38,7 @@ ARGS="-m ${RAM_SIZE} -smp ${CPU_CORES} -machine type=q35${KVM_ACC_OPTS} ${EXTRA_ set -m ( - for _SIGNAL in {1..64}; do trap "echo Caught trap ${_SIGNAL} for the QEMU process" "${_SIGNAL}"; done + for _SIGNAL in {1..64}; do trap 'echo Caught trap ${_SIGNAL} for the QEMU process' "${_SIGNAL}"; done qemu-system-x86_64 ${ARGS} & echo $! > ${_QEMU_PID} ) set +m