diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-04T13·08+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-04T13·08+0200 |
commit | 37a337bceca1c4730753ec5765a9eacb9f8a9962 (patch) | |
tree | e4545b8adc3996f6e0baa1f00c124e02c593a5db /src | |
parent | 6e120b76ee02847656eac46f8617f81567130272 (diff) |
throwSQLiteError(): Check for SIGINT so we don't loop forever
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/sqlite.cc | 1 |
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; |