Repository navigation
Conversation
MrMino
force-pushed
the
handle-exit-signal
branch
4 times, most recently
from
June 5, 2025 06:01
13de2fb to
25cbab3
Compare
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
force-pushed
the
handle-exit-signal
branch
from
June 5, 2025 06:03
25cbab3 to
93d61ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See RFC 4254 section 6.10. This is a close sibling of the
exit-statusmessage: if the remote process has been terminated due to a signal, the
server may indicate this condition with the
exit-signalmessage.exit-signalmessage handler code usesChannel.status_event, as doesthe code for the
exit-statusas both messages indicate a terminationof the remote process. It does not make much sense for the server to
send both.
While most servers omit support for
signal_messageandlanguage_tagfields, 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_namenorthe
language_tag. The signal_message usesbytesfor consistency.