summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-05 04:32:15 -0500
committerJune McEnroe <june@causal.agency>2019-12-05 04:32:15 -0500
commit35146e50190c3510ad891342b0ac158ddbd21a97 (patch)
tree1f43a61d0ecd5f25c9876c20cacf271006051552
parentMake user and host NOT NULL as well (diff)
downloadlitterbox-35146e50190c3510ad891342b0ac158ddbd21a97.tar.gz
litterbox-35146e50190c3510ad891342b0ac158ddbd21a97.zip
Set busy timeout
-rw-r--r--database.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/database.h b/database.h
index ef62dde..5b46757 100644
--- a/database.h
+++ b/database.h
@@ -56,6 +56,8 @@ static inline sqlite3 *dbOpen(char *path, int flags) {
 	}
 	if (error) errx(EX_NOINPUT, "%s: %s", path, sqlite3_errmsg(db));
 
+	sqlite3_busy_timeout(db, 1000);
+
 	error = sqlite3_exec(db, "PRAGMA foreign_keys = true;", NULL, NULL, NULL);
 	if (error) errx(EX_SOFTWARE, "sqlite3_exec: %s", sqlite3_errmsg(db));
 
n title='2018-09-10 14:49:00 -0400'>2018-09-10Add mdoc syntax fileJune McEnroe 2018-09-08Fix Nm usage in multi-name man pagesJune McEnroe 2018-09-08Put real dates on man pagesJune McEnroe 2018-09-08Replace gfx README with REAMDE.7June McEnroe 2018-09-08Link gfx man pages in ~/.localJune McEnroe>2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe