Skip to content

Conversation

@benhillis
Copy link
Member

While looking at #13330 I realized that it's not ideal that the debug shell will become unusable if the user runs "exit" in it. Resolve that issue by adding a relaunch loop.

This does not actually fix the reported issue, but I think is a useful change to take in isolation as it improves debugging capability.

Copilot AI review requested due to automatic review settings August 11, 2025 22:05
@benhillis benhillis requested a review from a team as a code owner August 11, 2025 22:05
Copy link
Contributor

Copilot AI left a comment

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 improves the WSL debug shell by adding automatic relaunch functionality. When a user exits the debug shell (e.g., by typing "exit"), the shell will automatically restart instead of becoming permanently unusable.

  • Wraps the debug shell process in a relaunch loop that monitors and restarts the shell when it exits
  • Uses proper process management with waitpid to handle child process termination
  • Maintains the same agetty configuration for the actual shell process

@benhillis benhillis merged commit fd3b858 into master Aug 13, 2025
6 checks passed
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.

3 participants