mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
* Close the database before the destructor runs.
This commit is contained in:
parent
fa95f4be3f
commit
d822bf32e4
4 changed files with 15 additions and 0 deletions
|
@ -14,6 +14,7 @@ extern "C" {
|
|||
|
||||
#include "globals.hh"
|
||||
#include "gc.hh"
|
||||
#include "store.hh"
|
||||
#include "shared.hh"
|
||||
|
||||
#include "config.h"
|
||||
|
@ -213,6 +214,8 @@ static void initAndRun(int argc, char * * argv)
|
|||
RemoveTempRoots removeTempRoots; /* unused variable - don't remove */
|
||||
|
||||
run(remaining);
|
||||
|
||||
closeDB(); /* it's fine if the DB isn't actually open */
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue