Home GnuPG
Diffusion GnuPG f9acc7d18bb9

scd: Fix scd_kick_the_loop.
f9acc7d18bb9Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Fix scd_kick_the_loop.

* scd/scdaemon.c (notify_fd): Remove.
(the_event) [W32]: New.
(main_thread_pid) [!W32]: New.
(handle_signal): Handle SIGCONT.
(scd_kick_the_loop): Use signal on UNIX and event on Windows.
(handle_connections): Likewise.

Code with CreateEvent is copied from gpg-agent.c.
Code for signal is copied from dkg's gpg-agent-idling in Debian.

  • GnuPG-bug-id: T2982
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 3 2017, 12:30 PM
Parents
rG5f6f3f5cae8a: gpg: Fix possible segv when attribute packets are filtered.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rGf9acc7d18bb9: scd: Fix scd_kick_the_loop. (authored by NIIBE Yutaka <gniibe@fsij.org>).Mar 3 2017, 12:40 PM