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.
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.