Skip to content
Discussion options

You must be logged in to vote

It's by design: https://tangoadb.dev/api/adb/subprocess/shell-protocol/#kill

Calling kill closes the socket, which triggers ADB daemon to send a SIGHUP to the child process. The child process may handle the signal and exit with its own exit code, or the kernel kills the process with exit code 129. But as the socket is already closed, this exit code can't be received, so the exited promise always rejects with that error.

You can use a variable to differentiate between you killing the process or the ADB connection breaks.

I'm also open to any suggestions on this API design.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yume-chan
Comment options

@Ercilan
Comment options

@yume-chan
Comment options

Answer selected by Ercilan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants