Merge "makeparallel: unset MAKEFLAGS and MAKELEVEL"
This commit is contained in:
commit
03f0a03857
1 changed files with 2 additions and 0 deletions
|
@ -341,6 +341,8 @@ int main(int argc, char* argv[]) {
|
|||
error(errno, errno, "fork failed");
|
||||
} else if (pid == 0) {
|
||||
// child
|
||||
unsetenv("MAKEFLAGS");
|
||||
unsetenv("MAKELEVEL");
|
||||
int ret = execvp(path, args.data());
|
||||
if (ret < 0) {
|
||||
error(errno, errno, "exec %s failed", path);
|
||||
|
|
Loading…
Reference in a new issue