diff options
author | Naïm Favier <n@monade.li> | 2022-05-11 12:55:31 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-05-11 12:58:45 +0200 |
commit | 1461e6cdda06f7f461114cce5b415f6d50381311 (patch) | |
tree | 09b6f1a0b61897486a517f4388c46c951f9d9c19 /src/nix-build | |
parent | 7062ebf5beb62b069dbf7e83f9c0dd92cf999cd3 (diff) |
Stop the logger properly in legacy commands
Ensures the logger is stopped on exit in legacy commands. Without this,
when using `nix-build --log-format bar` and stopping nix with CTRL+C,
the bar is not cleared from the screen.
Diffstat (limited to 'src/nix-build')
-rw-r--r-- | src/nix-build/nix-build.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index 519855ea3..426f23905 100644 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -543,8 +543,6 @@ static void main_nix_build(int argc, char * * argv) restoreProcessContext(); - logger->stop(); - execvp(shell->c_str(), argPtrs.data()); throw SysError("executing shell '%s'", *shell); @@ -603,8 +601,6 @@ 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'; } |