[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12015 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12015 - gnunet/src/fs |
Date: |
Mon, 28 Jun 2010 14:22:45 +0200 |
Author: nevans
Date: 2010-06-28 14:22:45 +0200 (Mon, 28 Jun 2010)
New Revision: 12015
Modified:
gnunet/src/fs/fs_test_lib.c
Log:
shutdown callback
Modified: gnunet/src/fs/fs_test_lib.c
===================================================================
--- gnunet/src/fs/fs_test_lib.c 2010-06-28 12:22:13 UTC (rev 12014)
+++ gnunet/src/fs/fs_test_lib.c 2010-06-28 12:22:45 UTC (rev 12015)
@@ -137,6 +137,27 @@
};
+/**
+ * Check whether peers successfully shut down.
+ */
+void shutdown_callback (void *cls,
+ const char *emsg)
+{
+ if (emsg != NULL)
+ {
+#if VERBOSE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Shutdown of peers failed!\n");
+#endif
+ }
+ else
+ {
+#if VERBOSE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "All peers successfully shut down!\n");
+#endif
+ }
+}
static void
report_uri (void *cls,
@@ -307,7 +328,7 @@
struct StartContext *sctx = cls;
unsigned int i;
- GNUNET_TESTING_daemons_stop (sctx->group,
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30));
+ GNUNET_TESTING_daemons_stop (sctx->group,
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30),
&shutdown_callback, NULL);
for (i=0;i<sctx->total;i++)
{
if (i < sctx->have)
@@ -507,7 +528,7 @@
GNUNET_free (daemons[i]);
daemons[i] = NULL;
}
- GNUNET_TESTING_daemons_stop (pg,
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30));
+ GNUNET_TESTING_daemons_stop (pg,
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30),
&shutdown_callback, NULL);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12015 - gnunet/src/fs,
gnunet <=