diff --git a/build.cc b/build.cc index b1c2c80..4f1d6f5 100644 --- a/build.cc +++ b/build.cc @@ -120,7 +120,7 @@ static void exec_command( if (pid == -1) { throw std::runtime_error{"command failed"}; } else if (!pid) { - if (!execvp(argp[0], argp.get())) { + if (execvp(argp[0], argp.get())) { argp.reset(); std::exit(1); }