Home GnuPG
Diffusion GnuPG 9fb3f0f3f79e

agent: Defer calling assuan_release when it's still in use.

Description

agent: Defer calling assuan_release when it's still in use.

* agent/call-scd.c (struct scd_local_s): Remove LOCK, introduce IN_USE
and INVALID flags.
(unlock_scd): Call assuan_release when CTX is invalid.
(start_scd): Set IN_USE.
(agent_scd_check_aliveness): Don't call assuan_release when it's in use.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Nov 26 2018, 3:05 AM
Parents
rGf45d6124696c: agent: Clean up SCDaemon management.
Branches
Unknown
Tags
Unknown