Fix trap signal

This commit is contained in:
Kroese 2023-04-11 05:50:37 +02:00 committed by GitHub
parent b23b8881c1
commit 6b50949141

2
run.sh
View File

@ -39,7 +39,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