summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-19 14:49:55 -0400
committerJune McEnroe <june@causal.agency>2020-08-19 14:53:53 -0400
commitc03e1e99dc7d4bda710eba0f4fc6716e0c165bd2 (patch)
tree88477f80b8d7a6125ddbe5c4f3b22bb698a5ff70
parentAdd Linux support (diff)
downloadscooper-c03e1e99dc7d4bda710eba0f4fc6716e0c165bd2.tar.gz
scooper-c03e1e99dc7d4bda710eba0f4fc6716e0c165bd2.zip
Set a database busy timeout
Diffstat (limited to '')
-rw-r--r--server.c1
1 files changed, 1 insertions, 0 deletions
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;
pan='3' class='logmsg'> 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe Running hi twice to insert stuff between the head and the content is a bit of a hack but oh well. 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe