Make ‘nix-store --optimise’ interruptible

This commit is contained in:
Eelco Dolstra 2012-08-01 16:06:49 -04:00
parent 157170059d
commit 7b10562370
1 changed files with 2 additions and 0 deletions

View File

@ -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);