aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/workqueue.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-03-10 09:52:43 +0000
committerWerner Koch <[email protected]>2023-03-10 10:24:48 +0000
commit56ca164684b69bcb20eb98a1adc70531c8991576 (patch)
tree981e54860b4f08f035ba61a01999d1453432d635 /dirmngr/workqueue.c
parentagent: Try to SETREPEATOK if the pinentry supports it. (diff)
downloadgnupg-56ca164684b69bcb20eb98a1adc70531c8991576.tar.gz
gnupg-56ca164684b69bcb20eb98a1adc70531c8991576.zip
dirmngr: Add command "GETINFO stats".
* dirmngr/server.c (cmd_getinfo): New sub-command "stats". (dirmngr_status_helpf): Allow for a CTRL of NULL. * dirmngr/certcache.c (cert_cache_print_stats): Add arg ctrl and use dirmngr_status_helpf. Adjust all callers. * dirmngr/domaininfo.c (domaininfo_print_stats): Ditto. * sm/certchain.c (ask_marktrusted): Flush stdout before printing the fingerprint.
Diffstat (limited to 'dirmngr/workqueue.c')
-rw-r--r--dirmngr/workqueue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dirmngr/workqueue.c b/dirmngr/workqueue.c
index 2974f5d08..dcac48024 100644
--- a/dirmngr/workqueue.c
+++ b/dirmngr/workqueue.c
@@ -59,7 +59,7 @@ workqueue_dump_queue (ctrl_t ctrl)
wqitem_t item;
unsigned int count;
- /* Temporarily detach the entiere workqueue so that other threads don't
+ /* Temporarily detach the entire workqueue so that other threads don't
* get into our way. */
saved_workqueue = workqueue;
workqueue = NULL;
@@ -74,8 +74,8 @@ workqueue_dump_queue (ctrl_t ctrl)
item->func? item->func (NULL, NULL): "nop",
item->args, strlen (item->args) > 100? "[...]":"");
- /* Restore then workqueue. Actually we append the saved queue do a
- * possibly updated workqueue. */
+ /* Restore the workqueue. Actually we append the saved queue to
+ * handle a possibly updated workqueue. */
if (!(item=workqueue))
workqueue = saved_workqueue;
else