commit 976813d3627270ae8e653317fcba29344ab4273b
parent 09ef5506b295d3882e384a098719dee66bdd7455
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Tue, 10 Nov 2015 18:38:06 +0100
small changes to debug the scheduler
Diffstat:
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -58,11 +58,6 @@ struct GNUNET_CRYPTO_EddsaPrivateKey *privkey;
char *keyfile;
/**
- * Mint context
- */
-static struct TALER_MINT_Context *mctx;
-
-/**
* This value tells the mint by which date this merchant would like
* to receive the funds for a deposited payment
*/
@@ -287,6 +282,8 @@ keys_mgmt_cb (void *cls, const struct TALER_MINT_Keys *keys)
}
else
printf ("no keys gotten\n");
+
+ printf ("cb: poller_task [%p]\n", poller_task);
}
@@ -332,7 +329,7 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
/**
* Task that runs the context's event loop using the GNUnet scheduler.
*
- * @param cls unused
+ * @param cls mint context
* @param tc scheduler context (unused)
*/
void
@@ -384,6 +381,7 @@ context_task (void *cls,
ws,
&context_task,
cls);
+ printf ("scheduling poller_task [%p]\n", poller_task);
GNUNET_NETWORK_fdset_destroy (rs);
GNUNET_NETWORK_fdset_destroy (ws);
}
@@ -494,7 +492,8 @@ run (void *cls, char *const *args, const char *cfgfile,
mints[cnt].conn = TALER_MINT_connect (mints[cnt].ctx,
mints[cnt].hostname,
&keys_mgmt_cb,
- &mints[cnt]);
+ &mints[cnt],
+ TALER_MINT_OPTION_END);
EXITIF (NULL == mints[cnt].conn);
poller_task =
GNUNET_SCHEDULER_add_now (&context_task, mints[cnt].ctx);