respect SIGINT in nix copy during the paths queries #1629

This commit is contained in:
AmineChikhaoui 2017-10-25 16:51:45 +01:00
parent 54a2cd9ce4
commit 0f9a7225ab

View file

@ -392,6 +392,7 @@ PathSet Store::queryValidPaths(const PathSet & paths, SubstituteFlag maybeSubsti
ThreadPool pool; ThreadPool pool;
auto doQuery = [&](const Path & path ) { auto doQuery = [&](const Path & path ) {
checkInterrupt();
queryPathInfo(path, queryPathInfo(path,
[path, &state_, &wakeup](ref<ValidPathInfo> info) { [path, &state_, &wakeup](ref<ValidPathInfo> info) {
auto state(state_.lock()); auto state(state_.lock());