1
0
réplica de https://github.com/dockur/windows.git synced 2026-06-10 11:59:33 +08:00

fix: Display signal names (#1760)

Este commit está contenido en:
Kroese
2026-06-05 03:14:50 +02:00
cometido por GitHub
padre 0c9472b62c
commit c768ba894d
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
+4 -4
Ver fichero
@@ -33,10 +33,6 @@ cmd=(qemu-system-x86_64)
version=$("${cmd[@]}" --version | awk 'NR==1 { print $4 }') version=$("${cmd[@]}" --version | awk 'NR==1 { print $4 }')
info "Booting ${APP}${BOOT_DESC} using QEMU v$version..." info "Booting ${APP}${BOOT_DESC} using QEMU v$version..."
if [[ "$SHUTDOWN" != [Yy1]* ]]; then
exec "${cmd[@]}" ${ARGS:+ $ARGS}
fi
pipe="$QEMU_DIR/qemu.pipe" pipe="$QEMU_DIR/qemu.pipe"
rm -f "$pipe" && mkfifo "$pipe" rm -f "$pipe" && mkfifo "$pipe"
@@ -50,6 +46,10 @@ sed -u \
-e 's/failed to load Boot/skipped Boot/g' \ -e 's/failed to load Boot/skipped Boot/g' \
-e 's/0): Not Found/0)/g' & -e 's/0): Not Found/0)/g' &
if [[ "$SHUTDOWN" != [Yy1]* ]]; then
exec "${cmd[@]}" ${ARGS:+ $ARGS} >"$pipe"
fi
"${cmd[@]}" ${ARGS:+ $ARGS} >"$pipe" & "${cmd[@]}" ${ARGS:+ $ARGS} >"$pipe" &
pid=$! pid=$!
+2 -2
Ver fichero
@@ -135,13 +135,13 @@ graceful_shutdown() {
esac esac
if [ -f "$QEMU_END" ]; then if [ -f "$QEMU_END" ]; then
echo && info "Received $1 while already shutting down..." echo && info "Received $1 signal while already shutting down..."
return return
fi fi
set +e set +e
touch "$QEMU_END" touch "$QEMU_END"
echo && info "Received $1, sending ACPI shutdown signal..." echo && info "Received $1 signal, sending ACPI shutdown signal..."
if [ ! -s "$QEMU_PID" ] || ! read -r pid <"$QEMU_PID"; then if [ ! -s "$QEMU_PID" ] || ! read -r pid <"$QEMU_PID"; then
warn "QEMU PID file ($QEMU_PID) does not exist?" warn "QEMU PID file ($QEMU_PID) does not exist?"