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

* 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.
This commit is contained in:
Werner Koch 2005-05-21 18:49:00 +00:00
parent 41862f5f13
commit 05e1dc22f0
9 changed files with 101 additions and 25 deletions

View file

@ -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: