aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-05-21 18:49:00 +0000
committerWerner Koch <[email protected]>2005-05-21 18:49:00 +0000
commit05e1dc22f0feef8d5af7c8bbb0c0a5129f2c0b05 (patch)
treea893c537329394cab1c954b2606e6d94d1846fe9 /agent/gpg-agent.c
parent* protect-tool.c: New option --canonical. (diff)
downloadgnupg-05e1dc22f0feef8d5af7c8bbb0c0a5129f2c0b05.tar.gz
gnupg-05e1dc22f0feef8d5af7c8bbb0c0a5129f2c0b05.zip
* call-scd.c (start_scd): Don't test for an alive scdaemon here.
(agent_scd_check_aliveness): New. * gpg-agent.c (handle_tick): Test for an alive scdaemon. (handle_signal): Print thread info on SIGUSR1. * scdaemon.c (handle_signal): Print thread info on SIGUSR1.
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r--agent/gpg-agent.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 4ac995c26..e3e952906 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1270,6 +1270,11 @@ create_directories (void)
static void
handle_tick (void)
{
+ /* Check whether the scdaemon has dies and cleanup in this case. */
+ agent_scd_check_aliveness ();
+
+ /* If we are running as a child of another process, check whether
+ the parent is still alive and shutdwon if now. */
#ifndef HAVE_W32_SYSTEM
if (parent_pid != (pid_t)(-1))
{
@@ -1301,7 +1306,8 @@ handle_signal (int signo)
break;
case SIGUSR1:
- log_info ("SIGUSR1 received - no action defined\n");
+ log_info ("SIGUSR1 received - printing internal information:\n");
+ pth_ctrl (PTH_CTRL_DUMPSTATE, log_get_stream ());
break;
case SIGUSR2: