Merge "makeparallel: unset MAKEFLAGS and MAKELEVEL"

This commit is contained in:
Colin Cross 2016-02-16 21:08:59 +00:00 committed by Gerrit Code Review
commit 03f0a03857

View file

@ -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);