gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11206 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11206 - gnunet/src/transport
Date: Thu, 6 May 2010 09:35:52 +0200

Author: wachs
Date: 2010-05-06 09:35:52 +0200 (Thu, 06 May 2010)
New Revision: 11206

Modified:
   gnunet/src/transport/test_plugin_transport_http.c
Log:
fixed crashing durign shutdown on freebsd7

Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c   2010-05-06 06:57:16 UTC 
(rev 11205)
+++ gnunet/src/transport/test_plugin_transport_http.c   2010-05-06 07:35:52 UTC 
(rev 11206)
@@ -158,11 +158,6 @@
   if (timeout_task != GNUNET_SCHEDULER_NO_TASK)
     GNUNET_SCHEDULER_cancel( sched, timeout_task );
   if (NULL != service) GNUNET_SERVICE_stop (service);
-  if (0 != PLIBC_KILL (pid, SIGTERM))
-    {
-      GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
-      fail = 1;
-    }
   unload_plugins(env.cls, env.cfg);
 }
 
@@ -261,18 +256,9 @@
     return;
   }
 
-
-
   stats = GNUNET_STATISTICS_create (sched, "http-transport", cfg);
   env.stats = stats;
 
-  GNUNET_STATISTICS_get (stats,
-                         "http-transport",
-                         gettext_noop("# PUT requests"),
-                         GNUNET_TIME_UNIT_MINUTES,
-                         NULL,
-                         &process_stat,
-                         NULL);
   /*
   max_connect_per_transport = (uint32_t) tneigh;
   my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile);
@@ -328,7 +314,6 @@
   static struct GNUNET_GETOPT_CommandLineOption options[] = {
     GNUNET_GETOPT_OPTION_END
   };
-  return GNUNET_NO;
   int ret;
   char *const argv_prog[] = {
     "test_plugin_transport_http",
@@ -357,6 +342,11 @@
                              "testcase", options, &run, NULL)) ? fail : 1;
   GNUNET_DISK_directory_remove ("/tmp/test_plugin_transport_http");
 
+  if (0 != PLIBC_KILL (pid, SIGTERM))
+  {
+    GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
+    fail = 1;
+  }
   return fail;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]