nix-build: stop logger when appropriate

Reverts b944b588fa in `nix-build.cc`.
This commit is contained in:
Naïm Favier 2022-06-11 15:13:58 +02:00
parent 45ebaab665
commit 502d7d9092
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2

View file

@ -543,6 +543,8 @@ static void main_nix_build(int argc, char * * argv)
restoreProcessContext();
logger->stop();
execvp(shell->c_str(), argPtrs.data());
throw SysError("executing shell '%s'", *shell);
@ -601,6 +603,8 @@ static void main_nix_build(int argc, char * * argv)
outPaths.push_back(outputPath);
}
logger->stop();
for (auto & path : outPaths)
std::cout << store->printStorePath(path) << '\n';
}