mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
Make ‘nix-store --optimise’ interruptible
This commit is contained in:
parent
157170059d
commit
7b10562370
|
@ -51,6 +51,8 @@ struct MakeImmutable
|
||||||
|
|
||||||
void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path)
|
void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path)
|
||||||
{
|
{
|
||||||
|
checkInterrupt();
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (lstat(path.c_str(), &st))
|
if (lstat(path.c_str(), &st))
|
||||||
throw SysError(format("getting attributes of path `%1%'") % path);
|
throw SysError(format("getting attributes of path `%1%'") % path);
|
||||||
|
|
Loading…
Reference in a new issue