From c03e1e99dc7d4bda710eba0f4fc6716e0c165bd2 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 19 Aug 2020 14:49:55 -0400 Subject: Set a database busy timeout --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index 48b760c..6cb0611 100644 --- a/server.c +++ b/server.c @@ -110,6 +110,7 @@ int main(int argc, char *argv[]) { int error = sqlite3_open_v2(path, &db, SQLITE_OPEN_READONLY, NULL); if (error) errx(EX_NOINPUT, "%s: %s", path, sqlite3_errmsg(db)); + sqlite3_busy_timeout(db, 1000); atexit(finalizeAll); sqlite3_stmt *check; -- cgit 1.4.1