Home GnuPG
Diffusion GnuPG c99282fc7838

keyboxd: Timeout on failure to get the database lock.

Description

keyboxd: Timeout on failure to get the database lock.

* kbx/backend-sqlite.c (dblock_info_cb): New.
(create_or_open_database): Add arg ctrl.  Add a 10 second timeout.
Avoid warning on error if not locked.
(be_sqlite_add_resource): Do not open the database here.
(be_sqlite_search): ... but do it here.

Note that we need to delay the initalization to the first use of the
database so that we actually have a recipient for the status messages.

Details

Provenance
wernerAuthored on Dec 18 2023, 3:25 PM
Parents
rG937aeb1904eb: common: Add an info callback to dotlock.
Branches
Unknown
Tags
Unknown
Tasks
T6838: keyboxd hangs on stale locks after changing hostname