Trap handler

This commit is contained in:
Kroese 2023-04-16 16:09:36 +02:00 committed by GitHub
parent eae43dda83
commit a1cffa9e4d

View file

@ -36,9 +36,6 @@ ARGS="-m ${RAM_SIZE} -smp ${CPU_CORES} ${KVM_ACC_OPTS} ${EXTRA_OPTS} ${KVM_MON_O
set -m
(
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