throwSQLiteError(): Check for SIGINT so we don't loop forever

This commit is contained in:
Eelco Dolstra 2016-04-04 15:08:08 +02:00
parent 6e120b76ee
commit 37a337bcec

View file

@ -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;