mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
gpg: Don't die immediately if the TOFU DB is locked.
* g10/tofu.c (opendb): Don't die immediately if the DB is locked. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
bc9ff6c85e
commit
26d457c218
@ -487,6 +487,10 @@ opendb (char *filename, enum db_type type)
|
||||
db = NULL;
|
||||
}
|
||||
|
||||
/* If a DB is locked wait up to 5 seconds for the lock to be cleared
|
||||
before failing. */
|
||||
sqlite3_busy_timeout (db, 5 * 1000);
|
||||
|
||||
if (filename_free)
|
||||
xfree (filename);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user