From 37a337bceca1c4730753ec5765a9eacb9f8a9962 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Apr 2016 15:08:08 +0200 Subject: throwSQLiteError(): Check for SIGINT so we don't loop forever --- src/libstore/sqlite.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstore') 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; -- cgit 1.4.1