russh client: channel.signal(Sig::INT) not working, but sending \x03 raw data works #622
Unanswered
haohanyuzmx
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to send an interrupt signal to a remote process running via sudo using russh.
The Problem:
When I send the raw byte \x03 using c.data(&b"\x03"[..]), the remote process catches the interrupt as expected (prints "kill" and exits).
When I use c.signal(russh::Sig::INT), the signal seems to be ignored, and the remote process continues until it finishes (prints "end").
Code:
Beta Was this translation helpful? Give feedback.
All reactions