Skip to content

Support exit-signal messages (client and server) - #2517

Open
MrMino wants to merge 3 commits into
paramiko:mainfrom
MrMino:handle-exit-signal
Open

MrMino wants to merge 3 commits into
paramiko:mainfrom
MrMino:handle-exit-signal

Conversation

@MrMino

@MrMino MrMino commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

See RFC 4254 section 6.10. This is a close sibling of the exit-status
message: if the remote process has been terminated due to a signal, the
server may indicate this condition with the exit-signal message.

exit-signal message handler code uses Channel.status_event, as does
the code for the exit-status as both messages indicate a termination
of the remote process. It does not make much sense for the server to
send both.

While most servers omit support for signal_message and language_tag
fields, most library implementations do not, and hence the addition of
these fields here.

All string field arguments / return values are passed as bytestrings,
since the standard does not specify encoding of the signal_name nor
the language_tag. The signal_message uses bytes for consistency.

@MrMino
MrMino force-pushed the handle-exit-signal branch 4 times, most recently from 13de2fb to 25cbab3 Compare June 5, 2025 06:01
MrMino added 2 commits June 5, 2025 08:03
See RFC 4254 section 6.10. This is a close sibling of the `exit-status`
message: if the remote process has been terminated due to a signal, the
server may indicate this condition with the `exit-signal` message.

`exit-signal` message handler code uses `Channel.status_event`, as does
the code for the `exit-status` as both messages indicate a termination
of the remote process. It does not make much sense for the server to
send both.

While most servers omit support for `signal_message` and `language_tag`
fields, most library implementations do not, and hence the addition of
these fields here.

All string field arguments / return values are passed as bytestrings,
since the standard does not specify encoding of the `signal_name` nor
the `language_tag`. The signal_message uses `bytes` for consistency.
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.

1 participant