Home GnuPG
Diffusion GnuPG 716e59b0b628

agent: Add agent_kick_the_loop function.

Description

agent: Add agent_kick_the_loop function.

* agent/agent.h (agent_kick_the_loop): New.
* agent/gpg-agent.c [HAVE_W32_SYSTEM] (the_event2): New.
[HAVE_PSELECT_NO_EINTR] (event_pipe_fd): New.
[!HAVE_PSELECT_NO_EINTR] (main_thread_pid): New.
(create_an_event): New, factored out.
(get_agent_daemon_notify_event): Use create_an_event.
(handle_signal): Add a case for SIGCONT.
(agent_kick_the_loop): New.
(handle_connections): Call pselect possibly with the pipe.
Call eselect with THE_EVENT2.
  • GnuPG-bug-id: T6682
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Aug 24 2023, 9:07 AM
Parents
rG9e4d52223945: tpm2d: Fix call to assuan_control.
Branches
Unknown
Tags
Unknown
Tasks
T6682: agent: agent_kick_the_loop function to unblock the select(2)