[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13030 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13030 - gnunet/src/testing |
Date: |
Mon, 20 Sep 2010 11:56:52 +0200 |
Author: nevans
Date: 2010-09-20 11:56:52 +0200 (Mon, 20 Sep 2010)
New Revision: 13030
Modified:
gnunet/src/testing/testing_group.c
Log:
daemons_vary fix
Modified: gnunet/src/testing/testing_group.c
===================================================================
--- gnunet/src/testing/testing_group.c 2010-09-20 09:26:44 UTC (rev 13029)
+++ gnunet/src/testing/testing_group.c 2010-09-20 09:56:52 UTC (rev 13030)
@@ -4135,19 +4135,23 @@
GNUNET_TESTING_NotifyCompletion cb,
void *cb_cls)
{
+ struct ShutdownContext *shutdown_ctx;
+ struct ChurnRestartContext *startup_ctx;
struct ChurnContext *churn_ctx;
if (GNUNET_NO == desired_status)
{
if (NULL != pg->peers[offset].daemon)
{
+ shutdown_ctx = GNUNET_malloc(sizeof(struct ShutdownContext));
churn_ctx = GNUNET_malloc(sizeof(struct ChurnContext));
churn_ctx->num_to_start = 0;
churn_ctx->num_to_stop = 1;
churn_ctx->cb = cb;
- churn_ctx->cb_cls = cb_cls;
+ churn_ctx->cb_cls = cb_cls;
+ shutdown_ctx->cb_cls = churn_ctx;
GNUNET_TESTING_daemon_stop(pg->peers[offset].daemon,
- timeout, &churn_stop_callback, churn_ctx,
+ timeout, &churn_stop_callback,
shutdown_ctx,
GNUNET_NO, GNUNET_YES);
}
}
@@ -4155,13 +4159,15 @@
{
if (NULL == pg->peers[offset].daemon)
{
+ startup_ctx = GNUNET_malloc(sizeof(struct ChurnRestartContext));
churn_ctx = GNUNET_malloc(sizeof(struct ChurnContext));
churn_ctx->num_to_start = 1;
churn_ctx->num_to_stop = 0;
churn_ctx->cb = cb;
churn_ctx->cb_cls = cb_cls;
+ startup_ctx->churn_ctx = churn_ctx;
GNUNET_TESTING_daemon_start_stopped(pg->peers[offset].daemon,
- timeout, &churn_start_callback,
churn_ctx);
+ timeout, &churn_start_callback,
startup_ctx);
}
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13030 - gnunet/src/testing,
gnunet <=