diff options
author | Naïm Favier <n@monade.li> | 2022-06-11 15:13:58 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-06-11 15:17:35 +0200 |
commit | 502d7d9092ccf792a27088f31571dbace96f1962 (patch) | |
tree | ef892344a8e03383d12a0489c59f34c6ccb63d8b | |
parent | 45ebaab66594692035f028796200a6db2b1fedaf (diff) |
nix-build: stop logger when appropriate
Reverts b944b588fa280b0555b8269c0f6d097352f8716f in `nix-build.cc`.
-rw-r--r-- | src/nix-build/nix-build.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index 426f23905..519855ea3 100644 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -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'; } |