[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21314 - gnunet/src/statistics
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21314 - gnunet/src/statistics |
Date: |
Mon, 7 May 2012 09:59:00 +0200 |
Author: grothoff
Date: 2012-05-07 09:59:00 +0200 (Mon, 07 May 2012)
New Revision: 21314
Modified:
gnunet/src/statistics/gnunet-statistics.c
Log:
-check return value
Modified: gnunet/src/statistics/gnunet-statistics.c
===================================================================
--- gnunet/src/statistics/gnunet-statistics.c 2012-05-07 07:38:43 UTC (rev
21313)
+++ gnunet/src/statistics/gnunet-statistics.c 2012-05-07 07:59:00 UTC (rev
21314)
@@ -184,7 +184,12 @@
ret = 1;
return;
}
- GNUNET_STATISTICS_watch(h, subsystem, name, &printer, h);
+ if (GNUNET_OK != GNUNET_STATISTICS_watch (h, subsystem, name, &printer, h))
+ {
+ fprintf (stderr, _("Failed to initialize watch routine\n"));
+ GNUNET_SCHEDULER_add_now (&shutdown_task, h);
+ return;
+ }
GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task,
h);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21314 - gnunet/src/statistics,
gnunet <=