aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-11-11 15:07:37 +0000
committerWerner Koch <[email protected]>2010-11-11 15:07:37 +0000
commit2c982dcf86c61a900383c5254f1b10648d933258 (patch)
treebd5f5f584b5a07ebf6f738e4ec249b665cf0ae57 /agent/gpg-agent.c
parentAdd patches for EncFs (diff)
downloadgnupg-2c982dcf86c61a900383c5254f1b10648d933258.tar.gz
gnupg-2c982dcf86c61a900383c5254f1b10648d933258.zip
Fix bug where scdaemon kills a non-daemon gpg-agent.
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r--agent/gpg-agent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 8d0000f70..f4732fde3 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1894,6 +1894,10 @@ handle_connections (gnupg_fd_t listen_fd, gnupg_fd_t listen_fd_ssh)
#endif
time_ev = NULL;
+ /* Set a flag to tell call-scd.c that it may enable event
+ notifications. */
+ opt.sigusr2_enabled = 1;
+
FD_ZERO (&fdset);
FD_SET (FD2INT (listen_fd), &fdset);
nfd = FD2INT (listen_fd);