Allow for gracefull shutdows

This commit is contained in:
Kroese 2023-04-10 21:12:10 +02:00 committed by GitHub
parent b65d7b11c2
commit 41090b3287

2
run.sh
View File

@ -38,7 +38,7 @@ ARGS="-m ${RAM_SIZE} -smp ${CPU_CORES} -machine type=q35${KVM_ACC_OPTS} ${EXTRA_
set -m 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} qemu-system-x86_64 ${ARGS} & echo $! > ${_QEMU_PID}
) )
set +m set +m