incorrect check
This commit is contained in:
parent
3402fedf28
commit
5a09b58613
2
build.cc
2
build.cc
|
@ -120,7 +120,7 @@ static void exec_command(
|
||||||
if (pid == -1) {
|
if (pid == -1) {
|
||||||
throw std::runtime_error{"command failed"};
|
throw std::runtime_error{"command failed"};
|
||||||
} else if (!pid) {
|
} else if (!pid) {
|
||||||
if (!execvp(argp[0], argp.get())) {
|
if (execvp(argp[0], argp.get())) {
|
||||||
argp.reset();
|
argp.reset();
|
||||||
std::exit(1);
|
std::exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue