aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2017-10-25 16:51:45 +0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2017-10-25 16:51:45 +0100
commit0f9a7225ab47fe313db41f4019177be8fb84a1dd (patch)
tree1943e9073262941fd9c6b7927cd7ee6172eb3d92
parent54a2cd9ce43b29382a5799635ea9aa28c245d3a4 (diff)
respect SIGINT in nix copy during the paths queries #1629
-rw-r--r--src/libstore/store-api.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 82e0bda54..3631e1b30 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -392,6 +392,7 @@ PathSet Store::queryValidPaths(const PathSet & paths, SubstituteFlag maybeSubsti
ThreadPool pool;
auto doQuery = [&](const Path & path ) {
+ checkInterrupt();
queryPathInfo(path,
[path, &state_, &wakeup](ref<ValidPathInfo> info) {
auto state(state_.lock());