Home GnuPG
Diffusion GnuPG 67b82a9c607e

common: New function dotlock_is_locked.

Description

common: New function dotlock_is_locked.

* common/dotlock.c (dotlock_is_locked): New.
(dotlock_take): Set locked flag also in disabled mode.  No more
warning if the lock has already been taken.
(dotlock_release): Clear locked flag also in disabled mode.  No more
warning if the lock has not been taken.

This allow to use dotlock_take and dotlock_release even if they have
already been called. Before this changes this worked too but a
diagnostic was printed.

Details

Provenance
wernerAuthored on Mar 2 2021, 6:34 PM
Parents
rG677245ba0e7d: sm: Lock kbx files also before a search.
Branches
Unknown
Tags
Unknown