about summary refs log tree commit diff
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
parent6e120b76ee02847656eac46f8617f81567130272 (diff)
throwSQLiteError(): Check for SIGINT so we don't loop forever
-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 0f1bb4947d34..77fbedd119c7 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;