Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

channel_signal_function for handling when request_exec process dies from signal #73

Open
enkore opened this issue Jun 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@enkore
Copy link
Member

enkore commented Jun 20, 2023

libssh exit_status is only set by the exit-status packet/request, which is only sent for regular process exits. If the remote process exits due to a signal, an exit-signal request is sent instead, which doesn't set exit-status (which then remains at -1).

I'm halfway between
"this kinda sounds like a libssh bug, ssh_channel_get_exit_status should return the standard unixy composite, like wait(2) does"
and
"I guess we have to add a default callback for this and add a separate Channel.get_exit_signal function."

@enkore enkore added the enhancement New feature or request label Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant