summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-eddsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-28 22:36:02 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-28 22:36:02 +0100
commit7d0d8d9f1c641409f900afcff68acddec913def1 (patch)
tree0a8762ba31d87e910866b7c6e04c8cac469dbdc2 /src/util/taler-exchange-secmod-eddsa.c
parent0e10a48a17fb62364d091d4c498a7ca14cb4eee6 (diff)
downloadexchange-7d0d8d9f1c641409f900afcff68acddec913def1.tar.gz
exchange-7d0d8d9f1c641409f900afcff68acddec913def1.tar.bz2
exchange-7d0d8d9f1c641409f900afcff68acddec913def1.zip
try another tac
Diffstat (limited to 'src/util/taler-exchange-secmod-eddsa.c')
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 66562255..d06c1e71 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -389,6 +389,8 @@ sign_worker (void *cls)
if (! in_shutdown)
break;
/* queue is empty, wait for work */
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Crypto worker waiting for work...\n");
GNUNET_assert (0 ==
pthread_cond_wait (&work_cond,
&work_lock));
@@ -1629,6 +1631,8 @@ run (void *cls,
/* start crypto workers */
if (0 == num_workers)
num_workers = sysconf (_SC_NPROCESSORS_CONF);
+ if (0 == num_workers)
+ num_workers = 1;
workers = GNUNET_new_array (num_workers,
pthread_t);
for (unsigned int i = 0; i<num_workers; i++)