exitInfo

open override val exitInfo: Deferred<SessionExit?>(source)

Completes with how the remote process terminated once the server reports it (RFC 4254 section 6.10), or with null when the channel closes without an exit-status/exit-signal notification. Servers are not required to send one, so null means unknown, not failure.

Typically awaited after stdout reaches end-of-stream on an exec channel to collect the command's exit code.