1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Fix a bug where scdaemon kills a non-daemon gpg-agent.

Fix a passphrase cache annoyance.
This commit is contained in:
Werner Koch 2010-11-11 15:08:48 +00:00
parent 2bd66b59a2
commit 46ef7f6243
7 changed files with 62 additions and 23 deletions

View file

@ -408,17 +408,18 @@ start_scd (ctrl_t ctrl)
}
/* Tell the scdaemon we want him to send us an event signal. */
{
char buf[100];
if (opt.sigusr2_enabled)
{
char buf[100];
#ifdef HAVE_W32_SYSTEM
snprintf (buf, sizeof buf, "OPTION event-signal=%lx",
(unsigned long)get_agent_scd_notify_event ());
snprintf (buf, sizeof buf, "OPTION event-signal=%lx",
(unsigned long)get_agent_scd_notify_event ());
#else
snprintf (buf, sizeof buf, "OPTION event-signal=%d", SIGUSR2);
snprintf (buf, sizeof buf, "OPTION event-signal=%d", SIGUSR2);
#endif
assuan_transact (ctx, buf, NULL, NULL, NULL, NULL, NULL, NULL);
}
assuan_transact (ctx, buf, NULL, NULL, NULL, NULL, NULL, NULL);
}
primary_scd_ctx = ctx;
primary_scd_ctx_reusable = 0;