aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-05-11 12:55:31 +0200
committerNaïm Favier <n@monade.li>2022-05-11 12:58:45 +0200
commit1461e6cdda06f7f461114cce5b415f6d50381311 (patch)
tree09b6f1a0b61897486a517f4388c46c951f9d9c19 /src/nix-env
parent7062ebf5beb62b069dbf7e83f9c0dd92cf999cd3 (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-env')
-rw-r--r--src/nix-env/nix-env.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index 96f3c3b26..c412bb814 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -1489,8 +1489,6 @@ static int main_nix_env(int argc, char * * argv)
globals.state->printStats();
- logger->stop();
-
return 0;
}
}