-
|
If I call What is the correct way to close it? Or is this a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
It's by design: https://tangoadb.dev/api/adb/subprocess/shell-protocol/#kill Calling 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. |
Beta Was this translation helpful? Give feedback.
It's by design: https://tangoadb.dev/api/adb/subprocess/shell-protocol/#kill
Calling
killcloses 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 theexitedpromise 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.