Unverified Commit 076db5a6 authored by copilot-swe-agent[bot]'s avatar copilot-swe-agent[bot] Committed by GitHub
Browse files

Suppress "Killed" message by disowning QEMU and using wait loop

parent 970f8b2e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -37,8 +37,14 @@ else
  qemu-system-x86_64 ${ARGS:+ $ARGS} </dev/tty >/dev/tty &
fi

rc=0
wait $! 2>/dev/null || rc=$?
pid=$!
disown "$pid"

while isAlive "$pid"; do
  sleep 1 & wait $!
done

wait "$pid" 2>/dev/null && rc=0 || rc=$?
[ -f "$QEMU_END" ] && exit "$rc"

sleep 1 & wait $!