diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-01T20·06-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-01T20·06-0400 |
commit | 7b10562370919947c9df748a165587ec5fc6c2ea (patch) | |
tree | 1fd3dd83043f71ec0b69174634c6f631d6055891 | |
parent | 157170059df39933d358d087d88f8b5bc4d5fde6 (diff) |
Make ‘nix-store --optimise’ interruptible
-rw-r--r-- | src/libstore/optimise-store.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc index 486538bd29f6..2c3f59a72428 100644 --- a/src/libstore/optimise-store.cc +++ b/src/libstore/optimise-store.cc @@ -51,6 +51,8 @@ struct MakeImmutable void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path) { + checkInterrupt(); + struct stat st; if (lstat(path.c_str(), &st)) throw SysError(format("getting attributes of path `%1%'") % path); |