canonical / canonical/multipass

[ssh] Bad exit status retrieval

Open
#4,990 5 comments 1 reaction 0 assignees View on GitHub
needs triage
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

**Describe the bug**
PlainSSHProcess attempts to retrieve the exit status by registering a callback and polling. The issue is that the callback is only registered for the duration of the call, so it will miss the return code if it does not come in that time window. The callbacks should ideally be registered for the lifetime of the channel.

Contributor guide

Open the contributing guide

Research direction

Start by locating PlainSSHProcess and tracing how it registers the exit-status callback and polls for the result. Check the channel lifecycle and existing SSH-related tests, if present. Done means exit status retrieval remains reliable when the callback response arrives outside the current call window.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.