diff options
author | NIIBE Yutaka <[email protected]> | 2023-08-24 07:07:26 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-08-24 07:07:26 +0000 |
commit | 716e59b0b62888776706472e69ee595e00a2e010 (patch) | |
tree | df2d0463594886ba335feb38390723c03e948a5d /agent/agent.h | |
parent | tpm2d: Fix call to assuan_control. (diff) | |
download | gnupg-716e59b0b62888776706472e69ee595e00a2e010.tar.gz gnupg-716e59b0b62888776706472e69ee595e00a2e010.zip |
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: 6682
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index 531fad210..69a1d5ff5 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -411,6 +411,7 @@ void *get_agent_daemon_notify_event (void); #endif void agent_sighup_action (void); int map_pk_openpgp_to_gcry (int openpgp_algo); +void agent_kick_the_loop (void); /*-- command.c --*/ gpg_error_t agent_inq_pinentry_launched (ctrl_t ctrl, unsigned long pid, |