summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-06-09 18:53:51 +0200
committerWerner Koch <wk@gnupg.org>2010-06-09 18:53:51 +0200
commitc3f08dcb7266efeac84f5f720ec0a353a45e950d (patch)
tree51501aa7d0e6dadb80576a1e982fdfde871bd2ad /scd
parent2010-06-08 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-c3f08dcb7266efeac84f5f720ec0a353a45e950d.tar.xz
gnupg2-c3f08dcb7266efeac84f5f720ec0a353a45e950d.zip
Merged Dirmngr with GnuPG.
A few code changes to support dirmngr.
Diffstat (limited to 'scd')
-rw-r--r--scd/ChangeLog5
-rw-r--r--scd/scdaemon.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/scd/ChangeLog b/scd/ChangeLog
index 3bb00f178..7578b7fc2 100644
--- a/scd/ChangeLog
+++ b/scd/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-09 Werner Koch <wk@g10code.com>
+
+ * scdaemon.c (main): s/log_set_get_tid_callback/log_set_pid_suffix_cb/.
+ (tid_log_callback): Adjust for this change.
+
2010-03-11 Werner Koch <wk@g10code.com>
* scdaemon.c: Include "asshelp.h".
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index e5d8ea911..93fc58a93 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -269,14 +269,15 @@ my_strusage (int level)
}
-static unsigned long
-tid_log_callback (void)
+static int
+tid_log_callback (unsigned long *rvalue)
{
#ifdef PTH_HAVE_PTH_THREAD_ID
- return pth_thread_id ();
+ *rvalue = pth_thread_id ();
#else
- return (unsigned long)pth_self ();
+ *rvalue = (unsigned long)pth_self ();
#endif
+ return 2; /* Use use hex representation. */
}
@@ -551,7 +552,7 @@ main (int argc, char **argv )
break;
case oDebugDisableTicker: ticker_disabled = 1; break;
case oDebugLogTid:
- log_set_get_tid_callback (tid_log_callback);
+ log_set_pid_suffix_cb (tid_log_callback);
break;
case oOptions: