Home GnuPG
Diffusion GnuPG fe5c6edaed78

g10: Fix a race condition initially creating trustdb.
fe5c6edaed78Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Fix a race condition initially creating trustdb.

* g10/tdbio.c (take_write_lock, release_write_lock): New.
(put_record_into_cache, tdbio_sync, tdbio_end_transaction): Use
new lock functions.
(tdbio_set_dbname): Fix the race.
(open_db): Don't call dotlock_create.

Details

Provenance
gniibeAuthored on May 28 2015, 10:08 AM
Parents
rG6cb18a8f975b: g10: Remove g10/signal.c.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rGfe5c6edaed78: g10: Fix a race condition initially creating trustdb. (authored by NIIBE Yutaka <gniibe@fsij.org>).May 28 2015, 10:18 AM