Skip to content

shim/manager: detect early shim exit while waiting for pipe on Windows#198

Open
dmcgowan wants to merge 1 commit into
containerd:mainfrom
dmcgowan:windows-detect-early-exit
Open

shim/manager: detect early shim exit while waiting for pipe on Windows#198
dmcgowan wants to merge 1 commit into
containerd:mainfrom
dmcgowan:windows-detect-early-exit

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

Avoid retrying pipe connection when we get an early exit

Copilot AI review requested due to automatic review settings May 22, 2026 21:08
Copy link
Copy Markdown

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 Windows shim startup behavior by detecting when the shim process exits while containerd is still polling for the shim’s named pipe, avoiding pointless retries until timeout.

Changes:

  • Capture cmd.Wait() result in a buffered channel during shim startup.
  • While polling for the named pipe, return immediately if the shim has already exited.

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

Comment thread pkg/shim/manager/manager_windows.go
@dmcgowan dmcgowan force-pushed the windows-detect-early-exit branch from 211a91d to f631c85 Compare May 22, 2026 21:32
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