- Fixed [clixon_proc can't start new process with PATH env #202](https://github.com/clicon/clixon/issues/202)

- Memory errors in tests
This commit is contained in:
Olof hagsand 2021-04-14 17:01:17 +02:00
parent 1af3a7bcfe
commit 172cfd69b3
7 changed files with 28 additions and 17 deletions

View file

@ -322,7 +322,7 @@ clixon_proc_background(char **argv,
}
}
#endif /* HAVE_SETNS */
if (execv(argv[0], argv) < 0) {
if (execvp(argv[0], argv) < 0) {
clicon_err(OE_UNIX, errno, "execv");
exit(1);
}