Skip to content

Display and control your Android device

Use _exit() instead of exit() in child process

Romain Vimonta919944372d8
diff --git a/app/src/unix/command.c b/app/src/unix/command.c
index 70dbd91b..776e0167 100644
--- a/app/src/unix/command.c
+++ b/app/src/unix/command.c
@@ -14,7 +14,7 @@ pid_t cmd_execute(const char *path, const char *const argv[]) {
if (pid == 0) {
execvp(path, (char *const *)argv);
perror("exec");
- exit(1);
+ _exit(1);
}
return pid;
}