[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4197 - GNUnet/src/server
From: |
durner |
Subject: |
[GNUnet-SVN] r4197 - GNUnet/src/server |
Date: |
Thu, 4 Jan 2007 13:58:20 -0800 (PST) |
Author: durner
Date: 2007-01-04 13:58:18 -0800 (Thu, 04 Jan 2007)
New Revision: 4197
Modified:
GNUnet/src/server/gnunet-update.c
GNUnet/src/server/gnunetd.c
Log:
add error message if init failed
Modified: GNUnet/src/server/gnunet-update.c
===================================================================
--- GNUnet/src/server/gnunet-update.c 2007-01-04 21:09:48 UTC (rev 4196)
+++ GNUnet/src/server/gnunet-update.c 2007-01-04 21:58:18 UTC (rev 4197)
@@ -190,7 +190,12 @@
uapi.cfg = cfg;
cron = cron_create(ectx);
- initCore(ectx, cfg, cron, NULL);
+ if (initCore(ectx, cfg, cron, NULL) != OK) {
+ GE_LOG(ectx, GE_FATAL | GE_USER | GE_IMMEDIATE,
+ _("Core initialization failed.\n"));
+
+ return;
+ }
/* force update of common modules (used by core) */
updateModule("transport");
Modified: GNUnet/src/server/gnunetd.c
===================================================================
--- GNUnet/src/server/gnunetd.c 2007-01-04 21:09:48 UTC (rev 4196)
+++ GNUnet/src/server/gnunetd.c 2007-01-04 21:58:18 UTC (rev 4197)
@@ -119,6 +119,9 @@
cfg,
cron,
mon)) {
+ GE_LOG(ectx, GE_FATAL | GE_USER | GE_IMMEDIATE,
+ _("Core initialization failed.\n"));
+
cron_destroy(cron);
os_network_monitor_destroy(mon);
#ifndef WINDOWS
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4197 - GNUnet/src/server,
durner <=