Home GnuPG
Diffusion GnuPG 95186ae92f92

agent: Use a thread to monitor socket takeover.

Description

agent: Use a thread to monitor socket takeover.

* agent/gpg-agent.c (check_own_socket_running): Remove.
(socket_takeover_detected): New.
(check_own_socket): Remove.
(handle_tick): Don't call check_own_socket any more.
(handle_connections): Start off the check_own_socket_thread.
Check socket_takeover_detected to handle the event.
(do_check_own_socket): New, factoring out the task.
(check_own_socket_thread): Loop with the interval.
  • GnuPG-bug-id: T6692
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Aug 30 2023, 3:57 AM
Parents
rG9dd8fd4ae445: g13: Fix for new assuan_control.
Branches
Unknown
Tags
Unknown
Tasks
T6692: agent: Clean up check_own_socket to monitor socket takeover