about summary refs log tree commit diff
path: root/src/libstore/sqlite.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-04T13·08+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-04T13·08+0200
commit37a337bceca1c4730753ec5765a9eacb9f8a9962 (patch)
treee4545b8adc3996f6e0baa1f00c124e02c593a5db /src/libstore/sqlite.cc
parent6e120b76ee02847656eac46f8617f81567130272 (diff)
throwSQLiteError(): Check for SIGINT so we don't loop forever
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r--src/libstore/sqlite.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc
index 0f1bb4947d..77fbedd119 100644
--- a/src/libstore/sqlite.cc
+++ b/src/libstore/sqlite.cc
@@ -20,6 +20,7 @@ namespace nix {
         }
         /* Sleep for a while since retrying the transaction right away
            is likely to fail again. */
+        checkInterrupt();
 #if HAVE_NANOSLEEP
         struct timespec t;
         t.tv_sec = 0;