mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 19:17:38 +00:00
Terminate forked children for exec after failure
This commit is contained in:
parent
0be158afa1
commit
3ccac8c3b8
@ -194,7 +194,7 @@ int exec_array(bool err, int *fd, void (*pre_exec)(void), const char **argv) {
|
||||
|
||||
execve(argv[0], (char **) argv, environ);
|
||||
PLOGE("execve %s", argv[0]);
|
||||
return -1;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
static int v_exec_command(bool err, int *fd, void (*cb)(void), const char *argv0, va_list argv) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user