Make "adb get-serialno" interruptible

All process executions must be interruptible, so that Ctrl+c reacts
immediately.
This commit is contained in:
Romain Vimont
2021-11-17 18:47:20 +01:00
parent ea454e9cee
commit 0426ae885c
3 changed files with 34 additions and 36 deletions

View File

@@ -35,8 +35,12 @@ adb_push(const char *serial, const char *local, const char *remote);
sc_pid
adb_install(const char *serial, const char *local);
// Return the result of "adb get-serialno".
char *
adb_get_serialno(void);
/**
* Execute `adb get-serialno`
*
* The result can be read from the output parameter `pout`.
*/
sc_pid
adb_get_serialno(sc_pipe *pout);
#endif