about 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
-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;
roe 2017-07-13Make pbd/pbcopy/pbpaste one binary with dispatchJune McEnroe 2017-07-11Remove manpager scriptJune McEnroe neovim now behaves correctly without the redirection hack. 2017-07-09Only pacman -Sy onceJune McEnroe 2017-07-09Add Tarmak 2 to console keymapJune McEnroe 2017-07-04Remove pathogenJune McEnroe Apparently this is built in now. Except it loads from a weird path structure. 2017-07-04Consolidate pbd, pbcopy, pbpasteJune McEnroe 2017-07-04Reorganize neovim configuration, againJune McEnroe 2017-07-04Remove <Esc><Esc> terminal mappingJune McEnroe <C-w><Esc> works just as well. Convenient. 2017-07-04Generalize C-w neovim terminal mappingJune McEnroe 2017-07-04Remove tmuxJune McEnroe tmux configuration was starting to bother me, and it got worse with Sierra. Turns out that neovim terminal emulation is much more natural to work with and requires less configuration, though I still disapprove of the feature being included in an editor! For detaching and attaching sessions, abduco is a simple tool that seems to work decently, but given that I will likely only be running neovim in the sessions, I might come up with something even simpler. 2017-07-04Show terminal title in statuslineJune McEnroe 2017-07-04Add nvim terminal mappingsJune McEnroe 2017-06-29Add color to xxJune McEnroe 2017-06-28Set tmux copy-mode-vi bindings for TarmakJune McEnroe 2017-06-27Link Scala syntax fileJune McEnroe Oops. 2017-06-27Clean up top of trivial colorscheme fileJune McEnroe 2017-06-27Fix Scala syntax highlight linksJune McEnroe