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);
|
execve(argv[0], (char **) argv, environ);
|
||||||
PLOGE("execve %s", argv[0]);
|
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) {
|
static int v_exec_command(bool err, int *fd, void (*cb)(void), const char *argv0, va_list argv) {
|
||||||
|
Loading…
Reference in New Issue
Block a user