1
0
Mirror von https://github.com/dockur/windows.git synchronisiert 2026-06-12 21:29:36 +08:00

fix: Kill QEMU after 5 seconds if it hangs (#1516)

Dieser Commit ist enthalten in:
Kroese
2025-10-19 17:57:18 +02:00
committet von GitHub
Ursprung ac106067bd
Commit 4cb7e1074f
+2 -2
Datei anzeigen
@@ -82,7 +82,7 @@ finish() {
if [ -s "$QEMU_PID" ]; then
pid=$(<"$QEMU_PID")
error "Forcefully terminating Windows, reason: $reason..."
echo && error "Forcefully terminating Windows, reason: $reason..."
{ kill -15 "$pid" || true; } 2>/dev/null
while isAlive "$pid"; do
@@ -94,7 +94,7 @@ finish() {
[ ! -s "$QEMU_PID" ] && break
if [ "$cnt" == "5" ]; then
error "QEMU did not terminate itself, forcefully killing process..."
echo && error "QEMU did not terminate itself, forcefully killing process..."
{ kill -9 "$pid" || true; } 2>/dev/null
fi