Skip to content

fix: Provide exitcode on shutdown#1752

Merged
kroese merged 7 commits into
masterfrom
dev
May 30, 2026
Merged

fix: Provide exitcode on shutdown#1752
kroese merged 7 commits into
masterfrom
dev

Conversation

@kroese

@kroese kroese commented May 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the QEMU shutdown/setup script to proactively clear prior-run QEMU artifacts and avoid leaking temporary variables into the global shell scope.

Changes:

  • Remove stale qemu.* files at startup so logs/pty markers don’t persist between runs.
  • Make _trap() use a local variable for the handler name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/power.sh Outdated
QEMU_END="$QEMU_DIR/qemu.end"

rm -f "$QEMU_DIR/qemu.*"
rm -f "$QEMU_DIR"/qemu.*
Copilot AI review requested due to automatic review settings May 30, 2026 20:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/power.sh Outdated
Comment on lines +230 to +232
[[ -n "${QEMU_DIR:-}" && "$QEMU_DIR" != "/" ]] && rm -f "$QEMU_DIR"/qemu.*
touch "$QEMU_LOG"

@kroese kroese changed the title fix: Remove stale QEMU files fix: Do not touch QEMU files May 30, 2026
Copilot AI review requested due to automatic review settings May 30, 2026 22:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

Comment thread src/power.sh
Comment on lines 14 to 18
_trap() {
func="$1" ; shift
local func="$1" ; shift
for sig ; do
trap "$func $sig" "$sig"
done
Comment thread src/power.sh
finish "$code" && return "$code"
}

touch "$QEMU_LOG"
Comment thread src/power.sh
Comment on lines 14 to 18
_trap() {
func="$1" ; shift
local func="$1" ; shift
for sig ; do
trap "$func $sig" "$sig"
done
Comment thread src/power.sh
finish "$code" && return "$code"
}

touch "$QEMU_LOG"
Copilot AI review requested due to automatic review settings May 30, 2026 22:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/power.sh
Comment on lines 8 to 12
QEMU_TERM=""
QEMU_PTY="$QEMU_DIR/qemu.pty"
QEMU_LOG="$QEMU_DIR/qemu.log"
QEMU_OUT="$QEMU_DIR/qemu.out"
QEMU_END="$QEMU_DIR/qemu.end"
@kroese kroese changed the title fix: Do not touch QEMU files fix: Provide exitcode on shutdown May 30, 2026
@kroese kroese merged commit 77c164a into master May 30, 2026
3 checks passed
@kroese kroese deleted the dev branch May 30, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants