[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30173 - in gnunet: . src/arm src/core src/dns src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30173 - in gnunet: . src/arm src/core src/dns src/hostlist src/include src/nat src/statistics src/testbed src/testing src/transport src/util |
Date: |
Sat, 12 Oct 2013 02:07:33 +0200 |
Author: harsha
Date: 2013-10-12 02:07:33 +0200 (Sat, 12 Oct 2013)
New Revision: 30173
Modified:
gnunet/configure.ac
gnunet/src/arm/gnunet-service-arm.c
gnunet/src/core/test_core_api.c
gnunet/src/core/test_core_api_reliability.c
gnunet/src/core/test_core_api_start_only.c
gnunet/src/core/test_core_quota_compliance.c
gnunet/src/dns/gnunet-helper-dns.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
gnunet/src/include/platform.h
gnunet/src/nat/nat.c
gnunet/src/nat/test_nat_test.c
gnunet/src/statistics/test_statistics_api.c
gnunet/src/statistics/test_statistics_api_loop.c
gnunet/src/statistics/test_statistics_api_watch.c
gnunet/src/statistics/test_statistics_api_watch_zero_value.c
gnunet/src/testbed/Makefile.am
gnunet/src/testbed/gnunet-helper-testbed.c
gnunet/src/testbed/gnunet-testbed-profiler.c
gnunet/src/testbed/gnunet_testbed_mpi_spawn.c
gnunet/src/testbed/testbed_api_hosts.c
gnunet/src/testbed/testbed_api_testbed.c
gnunet/src/testing/testing.c
gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c
gnunet/src/transport/gnunet-transport.c
gnunet/src/util/gnunet-uri.c
gnunet/src/util/helper.c
gnunet/src/util/os_priority.c
gnunet/src/util/scheduler.c
gnunet/src/util/test_common_logging_runtime_loglevels.c
gnunet/src/util/test_os_start_process.c
gnunet/src/util/test_resolver_api.c
gnunet/src/util/test_scheduler.c
Log:
- change --enable-ll to --enable-supermuc
- define a system wide termination signal GNUNET_TERM_SIG. Set this to SIGUSR1
only when building for SuperMUC
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/configure.ac 2013-10-12 00:07:33 UTC (rev 30173)
@@ -1036,22 +1036,21 @@
# Test if we are building for superMUC
-AC_MSG_CHECKING(if testbed should use IBM LoadLeveler to run on SuperMUC)
-AC_ARG_ENABLE([ll],
- [AS_HELP_STRING([--enable-ll],
- [build GNUnet testbed for use with IBM LoadLeveler for running testbed
on
- SuperMUC (default is NO)])],
- [if test "x$enable_ll" = "xno"
+AC_MSG_CHECKING(if GNUnet is being configured to run on the SuperMUC)
+AC_ARG_ENABLE([supermuc],
+ [AS_HELP_STRING([--enable-supermuc],
+ [build GNUnet with support to run on the SuperMUC (default is NO)])],
+ [if test "x$enable_supermuc" = "xno"
then
- ll=0
+ supermuc=0
else
- ll=1
+ supermuc=1
fi],
- [ll=0
- enable_ll=no])
-AC_MSG_RESULT($enable_ll)
-AM_CONDITIONAL([ENABLE_LL], [test "x$ll" = "x1"])
-AC_DEFINE_UNQUOTED([ENABLE_LL], [$ll], [Build with LL support])
+ [supermuc=0
+ enable_supermuc=no])
+AC_MSG_RESULT($enable_SUPERMUC)
+AM_CONDITIONAL([ENABLE_SUPERMUC], [test "x$supermuc" = "x1"])
+AC_DEFINE_UNQUOTED([ENABLE_SUPERMUC], [$supermuc], [Build with support for
SuperMUC])
# Check if NSE has to send timestamp information to testbed logger for
# generating histogram of messages received
Modified: gnunet/src/arm/gnunet-service-arm.c
===================================================================
--- gnunet/src/arm/gnunet-service-arm.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/arm/gnunet-service-arm.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -851,7 +851,7 @@
broadcast_status (servicename, GNUNET_ARM_SERVICE_STOPPING, NULL);
/* no signal_start - only when it's STOPPED */
sl->killed_at = GNUNET_TIME_absolute_get ();
- if (0 != GNUNET_OS_process_kill (sl->proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (sl->proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
sl->killing_client = client;
sl->killing_client_request_id = request_id;
@@ -1013,7 +1013,7 @@
"Stopping service `%s'\n",
pos->name);
pos->killed_at = GNUNET_TIME_absolute_get ();
- if (0 != GNUNET_OS_process_kill (pos->proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (pos->proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
}
else
Modified: gnunet/src/core/test_core_api.c
===================================================================
--- gnunet/src/core/test_core_api.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/core/test_core_api.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -334,7 +334,7 @@
static void
stop_arm (struct PeerContext *p)
{
- if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (p->arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/core/test_core_api_reliability.c
===================================================================
--- gnunet/src/core/test_core_api_reliability.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/core/test_core_api_reliability.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -447,7 +447,7 @@
static void
stop_arm (struct PeerContext *p)
{
- if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (p->arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/core/test_core_api_start_only.c
===================================================================
--- gnunet/src/core/test_core_api_start_only.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/core/test_core_api_start_only.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -184,7 +184,7 @@
stop_arm (struct PeerContext *p)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peer\n");
- if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (p->arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/core/test_core_quota_compliance.c
===================================================================
--- gnunet/src/core/test_core_quota_compliance.c 2013-10-11 18:02:52 UTC
(rev 30172)
+++ gnunet/src/core/test_core_quota_compliance.c 2013-10-12 00:07:33 UTC
(rev 30173)
@@ -627,7 +627,7 @@
static void
stop_arm (struct PeerContext *p)
{
- if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (p->arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/dns/gnunet-helper-dns.c
===================================================================
--- gnunet/src/dns/gnunet-helper-dns.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/dns/gnunet-helper-dns.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -838,6 +838,9 @@
}
}
if ( (SIG_ERR == signal (SIGTERM, &signal_handler)) ||
+#if (SIGTERM != GNUNET_TERM_SIG)
+ (SIG_ERR == signal (GNUNET_TERM_SIG, &signal_handler)) ||
+#endif
(SIG_ERR == signal (SIGINT, &signal_handler)) ||
(SIG_ERR == signal (SIGHUP, &signal_handler)) )
{
@@ -875,6 +878,9 @@
{
fprintf (stderr, "Fatal: could not initialize tun-interface\n");
(void) signal (SIGTERM, SIG_IGN);
+#if (SIGTERM != GNUNET_TERM_SIG)
+ (void) signal (GNUNET_TERM_SIG, SIG_IGN);
+#endif
(void) signal (SIGINT, SIG_IGN);
(void) signal (SIGHUP, SIG_IGN);
(void) close (cpipe[0]);
@@ -891,6 +897,9 @@
{
fprintf (stderr, "Fatal: prefix_len out of range\n");
(void) signal (SIGTERM, SIG_IGN);
+#if (SIGTERM != GNUNET_TERM_SIG)
+ (void) signal (GNUNET_TERM_SIG, SIG_IGN);
+#endif
(void) signal (SIGINT, SIG_IGN);
(void) signal (SIGHUP, SIG_IGN);
(void) close (cpipe[0]);
@@ -1043,6 +1052,9 @@
(void) close (fd_tun);
/* remove signal handler so we can close the pipes */
(void) signal (SIGTERM, SIG_IGN);
+#if (SIGTERM != GNUNET_TERM_SIG)
+ (void) signal (GNUNET_TERM_SIG, SIG_IGN);
+#endif
(void) signal (SIGINT, SIG_IGN);
(void) signal (SIGHUP, SIG_IGN);
(void) close (cpipe[0]);
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist.c 2013-10-11 18:02:52 UTC
(rev 30172)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist.c 2013-10-12 00:07:33 UTC
(rev 30173)
@@ -153,7 +153,7 @@
struct PeerContext *p = cls;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Killing ARM process.\n");
- if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (p->arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2013-10-11
18:02:52 UTC (rev 30172)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2013-10-12
00:07:33 UTC (rev 30173)
@@ -145,7 +145,7 @@
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Killing hostlist server ARM process.\n");
- if (0 != GNUNET_OS_process_kill (adv_peer.arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (adv_peer.arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (adv_peer.arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
@@ -153,7 +153,7 @@
adv_peer.arm_proc = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Killing hostlist client ARM process.\n");
- if (0 != GNUNET_OS_process_kill (learn_peer.arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (learn_peer.arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (learn_peer.arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2013-10-11
18:02:52 UTC (rev 30172)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2013-10-12
00:07:33 UTC (rev 30173)
@@ -153,7 +153,7 @@
struct PeerContext *p = cls;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Killing ARM process.\n");
- if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (p->arm_proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK)
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
Modified: gnunet/src/include/platform.h
===================================================================
--- gnunet/src/include/platform.h 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/include/platform.h 2013-10-12 00:07:33 UTC (rev 30173)
@@ -266,4 +266,10 @@
#define SOCKTYPE int
#endif
+#if ENABLE_SUPERMUC
+#define GNUNET_TERM_SIG SIGUSR1
+#else
+#define GNUNET_TERM_SIG SIGTERM
#endif
+
+#endif
Modified: gnunet/src/nat/nat.c
===================================================================
--- gnunet/src/nat/nat.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/nat/nat.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -789,7 +789,7 @@
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Finished reading from server stdout with code: %d\n", bytes);
- if (0 != GNUNET_OS_process_kill (h->server_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (h->server_proc, GNUNET_TERM_SIG))
GNUNET_log_from_strerror (GNUNET_ERROR_TYPE_WARNING, "nat", "kill");
GNUNET_OS_process_wait (h->server_proc);
GNUNET_OS_process_destroy (h->server_proc);
@@ -1303,7 +1303,7 @@
}
if (NULL != h->server_proc)
{
- if (0 != GNUNET_OS_process_kill (h->server_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (h->server_proc, GNUNET_TERM_SIG))
GNUNET_log_from_strerror (GNUNET_ERROR_TYPE_WARNING, "nat", "kill");
GNUNET_OS_process_wait (h->server_proc);
GNUNET_OS_process_destroy (h->server_proc);
Modified: gnunet/src/nat/test_nat_test.c
===================================================================
--- gnunet/src/nat/test_nat_test.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/nat/test_nat_test.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -107,7 +107,7 @@
GNUNET_assert (NULL != gns);
GNUNET_PROGRAM_run (3, argv_prog, "test-nat-test", "nohelp", options, &run,
NULL);
- GNUNET_break (0 == GNUNET_OS_process_kill (gns, SIGTERM));
+ GNUNET_break (0 == GNUNET_OS_process_kill (gns, GNUNET_TERM_SIG));
GNUNET_break (GNUNET_OK == GNUNET_OS_process_wait (gns));
GNUNET_OS_process_destroy (gns);
if (0 != ret)
Modified: gnunet/src/statistics/test_statistics_api.c
===================================================================
--- gnunet/src/statistics/test_statistics_api.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/statistics/test_statistics_api.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -153,7 +153,7 @@
GNUNET_assert (NULL != proc);
GNUNET_PROGRAM_run (5, argv, "test-statistics-api", "nohelp", options, &run,
&ok);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
ok = 1;
@@ -175,7 +175,7 @@
"-c", "test_statistics_api_data.conf", NULL);
GNUNET_PROGRAM_run (5, argv, "test-statistics-api", "nohelp", options,
&run_more, &ok);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
ok = 1;
Modified: gnunet/src/statistics/test_statistics_api_loop.c
===================================================================
--- gnunet/src/statistics/test_statistics_api_loop.c 2013-10-11 18:02:52 UTC
(rev 30172)
+++ gnunet/src/statistics/test_statistics_api_loop.c 2013-10-12 00:07:33 UTC
(rev 30173)
@@ -101,7 +101,7 @@
GNUNET_assert (NULL != proc);
GNUNET_PROGRAM_run (3, argv, "test-statistics-api", "nohelp", options, &run,
&ok);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
ok = 1;
Modified: gnunet/src/statistics/test_statistics_api_watch.c
===================================================================
--- gnunet/src/statistics/test_statistics_api_watch.c 2013-10-11 18:02:52 UTC
(rev 30172)
+++ gnunet/src/statistics/test_statistics_api_watch.c 2013-10-12 00:07:33 UTC
(rev 30173)
@@ -130,7 +130,7 @@
ok = 3;
GNUNET_PROGRAM_run (3, argv, "test-statistics-api", "nohelp", options, &run,
NULL);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
ok = 1;
Modified: gnunet/src/statistics/test_statistics_api_watch_zero_value.c
===================================================================
--- gnunet/src/statistics/test_statistics_api_watch_zero_value.c
2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/statistics/test_statistics_api_watch_zero_value.c
2013-10-12 00:07:33 UTC (rev 30173)
@@ -166,7 +166,7 @@
ok2 = 1;
GNUNET_PROGRAM_run (3, argv, "test-statistics-api", "nohelp", options, &run,
NULL);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
ok = 1;
Modified: gnunet/src/testbed/Makefile.am
===================================================================
--- gnunet/src/testbed/Makefile.am 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/testbed/Makefile.am 2013-10-12 00:07:33 UTC (rev 30173)
@@ -9,11 +9,6 @@
XLIB = -lgcov
endif
-if ENABLE_LL
- ll_binaries = \
- gnunet-testbed-mpi-spawn
-endif
-
libexecdir= $(pkglibdir)/libexec/
pkgcfgdir= $(pkgdatadir)/config.d/
@@ -28,7 +23,6 @@
gnunet-daemon-testbed-blacklist
bin_PROGRAMS = \
- $(ll_binaries) \
gnunet-testbed-profiler
gnunet_service_testbed_SOURCES = \
@@ -93,14 +87,6 @@
$(top_builddir)/src/transport/libgnunettransport.la \
$(top_builddir)/src/util/libgnunetutil.la
-gnunet_testbed_mpi_spawn_SOURCES = gnunet_testbed_mpi_spawn.c
-gnunet_testbed_mpi_spawn_LDADD = $(XLIB) \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la
-gnunet_testbed_mpi_spawn_DEPENDENCIES = \
- $(top_builddir)/src/util/libgnunetutil.la \
- libgnunettestbed.la
-
lib_LTLIBRARIES = \
libgnunettestbed.la \
libgnunettestbedlogger.la
Modified: gnunet/src/testbed/gnunet-helper-testbed.c
===================================================================
--- gnunet/src/testbed/gnunet-helper-testbed.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/testbed/gnunet-helper-testbed.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -166,7 +166,7 @@
if (NULL != testbed)
{
LOG_DEBUG ("Killing testbed\n");
- GNUNET_break (0 == GNUNET_OS_process_kill (testbed, SIGTERM));
+ GNUNET_break (0 == GNUNET_OS_process_kill (testbed, GNUNET_TERM_SIG));
}
if (GNUNET_SCHEDULER_NO_TASK != read_task_id)
{
@@ -298,7 +298,7 @@
GNUNET_OS_process_destroy (testbed);
testbed = NULL;
/* Send SIGTERM to our process group */
- if (0 != PLIBC_KILL (0, SIGTERM))
+ if (0 != PLIBC_KILL (0, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "signal");
shutdown_now (); /* Couldn't send the signal, we shutdown
frowning */
Modified: gnunet/src/testbed/gnunet-testbed-profiler.c
===================================================================
--- gnunet/src/testbed/gnunet-testbed-profiler.c 2013-10-11 18:02:52 UTC
(rev 30172)
+++ gnunet/src/testbed/gnunet-testbed-profiler.c 2013-10-12 00:07:33 UTC
(rev 30173)
@@ -225,7 +225,7 @@
result = GNUNET_OK;
fprintf (stdout, "\n");
print_overlay_links_summary ();
-#if !ENABLE_LL
+#if !ENABLE_SUPERMUC
fprintf (stdout, "Testbed running, waiting for keystroke to shut down\n");
fflush (stdout);
(void) getc (stdin);
@@ -281,7 +281,7 @@
{'e', "num-errors", "COUNT",
gettext_noop ("tolerate COUNT number of continious timeout failures"),
GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_cont_fails},
-#if !ENABLE_LL
+#if !ENABLE_SUPERMUC
{'H', "hosts", "FILENAME",
gettext_noop ("name of the file with the login information for the
testbed"),
GNUNET_YES, &GNUNET_GETOPT_set_string, &hosts_file},
Modified: gnunet/src/testbed/gnunet_testbed_mpi_spawn.c
===================================================================
--- gnunet/src/testbed/gnunet_testbed_mpi_spawn.c 2013-10-11 18:02:52 UTC
(rev 30172)
+++ gnunet/src/testbed/gnunet_testbed_mpi_spawn.c 2013-10-12 00:07:33 UTC
(rev 30173)
@@ -121,7 +121,7 @@
}
}
hard_kill++;
- GNUNET_break (0 == GNUNET_OS_process_kill (child, SIGTERM));
+ GNUNET_break (0 == GNUNET_OS_process_kill (child, GNUNET_TERM_SIG));
LOG (GNUNET_ERROR_TYPE_INFO, _("Waiting for child to exit.\n"));
}
Modified: gnunet/src/testbed/testbed_api_hosts.c
===================================================================
--- gnunet/src/testbed/testbed_api_hosts.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/testbed/testbed_api_hosts.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -565,7 +565,7 @@
GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTBED_Host
***hosts)
{
-#if !ENABLE_LL
+#if !ENABLE_SUPERMUC
LOG (GNUNET_ERROR_TYPE_ERROR,
_("The function %s is only available when compiled with (--with-ll)\n"),
__func__);
@@ -1374,7 +1374,7 @@
*handle)
{
GNUNET_SCHEDULER_cancel (handle->habitability_check_task);
- (void) GNUNET_OS_process_kill (handle->auxp, SIGTERM);
+ (void) GNUNET_OS_process_kill (handle->auxp, GNUNET_TERM_SIG);
(void) GNUNET_OS_process_wait (handle->auxp);
GNUNET_OS_process_destroy (handle->auxp);
free_argv (handle->helper_argv);
Modified: gnunet/src/testbed/testbed_api_testbed.c
===================================================================
--- gnunet/src/testbed/testbed_api_testbed.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/testbed/testbed_api_testbed.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -1255,7 +1255,7 @@
GNUNET_assert (num_peers > 0);
rc = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_RunHandle));
rc->cfg = GNUNET_CONFIGURATION_dup (cfg);
-#if ENABLE_LL
+#if ENABLE_SUPERMUC
rc->num_hosts = GNUNET_TESTBED_hosts_load_from_loadleveler (rc->cfg,
&rc->hosts);
if (0 == rc->num_hosts)
Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/testing/testing.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -508,7 +508,7 @@
stop_shared_service_instance (struct SharedServiceInstance *i)
{
GNUNET_break (0 == i->n_refs);
- if (0 != GNUNET_OS_process_kill (i->proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (i->proc, GNUNET_TERM_SIG))
LOG (GNUNET_ERROR_TYPE_WARNING,
"Killing shared service instance (%s) failed\n", i->ss->sname);
(void) GNUNET_OS_process_wait (i->proc);
@@ -1418,7 +1418,7 @@
GNUNET_break (0);
return GNUNET_SYSERR;
}
- if (0 != GNUNET_OS_process_kill (peer->main_process, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (peer->main_process, GNUNET_TERM_SIG))
return GNUNET_SYSERR;
for (cnt = 0; cnt < peer->system->n_shared_services; cnt++)
{
Modified: gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c
===================================================================
--- gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c 2013-10-11
18:02:52 UTC (rev 30172)
+++ gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c 2013-10-12
00:07:33 UTC (rev 30173)
@@ -314,7 +314,8 @@
signal (SIGINT, &sigfunc);
signal (SIGTERM, &sigfunc);
-
+ signal (GNUNET_TERM_SIG, &sigfunc);
+
write_std.size = 0;
write_std.pos = 0;
write_pout.size = 0;
Modified: gnunet/src/transport/gnunet-transport.c
===================================================================
--- gnunet/src/transport/gnunet-transport.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/transport/gnunet-transport.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -358,7 +358,7 @@
resolver_users--;
if ((0 == resolver_users) && (NULL != resolver))
{
- GNUNET_break (0 == GNUNET_OS_process_kill (resolver, SIGTERM));
+ GNUNET_break (0 == GNUNET_OS_process_kill (resolver, GNUNET_TERM_SIG));
GNUNET_OS_process_destroy (resolver);
resolver = NULL;
}
Modified: gnunet/src/util/gnunet-uri.c
===================================================================
--- gnunet/src/util/gnunet-uri.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/util/gnunet-uri.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -62,7 +62,7 @@
(0 == code) )
ret = 0;
else
- GNUNET_break (0 == GNUNET_OS_process_kill (p, SIGTERM));
+ GNUNET_break (0 == GNUNET_OS_process_kill (p, GNUNET_TERM_SIG));
GNUNET_OS_process_destroy (p);
}
Modified: gnunet/src/util/helper.c
===================================================================
--- gnunet/src/util/helper.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/util/helper.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -208,7 +208,7 @@
h->fh_to_helper = NULL;
return ret;
}
- if (0 != GNUNET_OS_process_kill (h->helper_proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (h->helper_proc, GNUNET_TERM_SIG))
return GNUNET_SYSERR;
return GNUNET_OK;
}
Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/util/os_priority.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -229,6 +229,9 @@
case SIGINT:
case SIGKILL:
case SIGTERM:
+#if (SIGTERM != GNUNET_TERM_SIG)
+ case GNUNET_TERM_SIG:
+#endif
#if defined(WINDOWS) && !defined(__CYGWIN__)
{
DWORD exitcode;
Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/util/scheduler.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -717,6 +717,9 @@
int ret;
struct GNUNET_SIGNAL_Context *shc_int;
struct GNUNET_SIGNAL_Context *shc_term;
+#if (SIGTERM != GNUNET_TERM_SIG)
+ struct GNUNET_SIGNAL_Context *shc_gterm;
+#endif
#ifndef MINGW
struct GNUNET_SIGNAL_Context *shc_quit;
@@ -741,6 +744,9 @@
LOG (GNUNET_ERROR_TYPE_DEBUG, "Registering signal handlers\n");
shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown);
shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown);
+#if (SIGTERM != GNUNET_TERM_SIG)
+ shc_gterm = GNUNET_SIGNAL_handler_install (GNUNET_TERM_SIG,
&sighandler_shutdown);
+#endif
#ifndef MINGW
shc_pipe = GNUNET_SIGNAL_handler_install (SIGPIPE, &sighandler_pipe);
shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown);
@@ -820,6 +826,9 @@
}
GNUNET_SIGNAL_handler_uninstall (shc_int);
GNUNET_SIGNAL_handler_uninstall (shc_term);
+#if (SIGTERM != GNUNET_TERM_SIG)
+ GNUNET_SIGNAL_handler_install (shc_gterm);
+#endif
#ifndef MINGW
GNUNET_SIGNAL_handler_uninstall (shc_pipe);
GNUNET_SIGNAL_handler_uninstall (shc_quit);
Modified: gnunet/src/util/test_common_logging_runtime_loglevels.c
===================================================================
--- gnunet/src/util/test_common_logging_runtime_loglevels.c 2013-10-11
18:02:52 UTC (rev 30172)
+++ gnunet/src/util/test_common_logging_runtime_loglevels.c 2013-10-12
00:07:33 UTC (rev 30173)
@@ -64,7 +64,7 @@
ok);
if (NULL != proc)
{
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
}
Modified: gnunet/src/util/test_os_start_process.c
===================================================================
--- gnunet/src/util/test_os_start_process.c 2013-10-11 18:02:52 UTC (rev
30172)
+++ gnunet/src/util/test_os_start_process.c 2013-10-12 00:07:33 UTC (rev
30173)
@@ -60,7 +60,7 @@
static void
end_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
}
@@ -207,7 +207,7 @@
"gnunet-service-resolver", "-", NULL);
sleep (1); /* give process time to start, so we actually use the pipe-kill
mechanism! */
GNUNET_free (fn);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc));
GNUNET_OS_process_destroy (proc);
@@ -236,7 +236,7 @@
proc =
GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR,
hello_pipe_stdin, hello_pipe_stdout, fn,
"gnunet-service-resolver", "-", NULL);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
}
Modified: gnunet/src/util/test_resolver_api.c
===================================================================
--- gnunet/src/util/test_resolver_api.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/util/test_resolver_api.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -374,7 +374,7 @@
GNUNET_PROGRAM_run ((sizeof (argvx) / sizeof (char *)) - 1,
argvx, "test-resolver-api", "nohelp",
options, &run, &ok));
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
ok = 1;
Modified: gnunet/src/util/test_scheduler.c
===================================================================
--- gnunet/src/util/test_scheduler.c 2013-10-11 18:02:52 UTC (rev 30172)
+++ gnunet/src/util/test_scheduler.c 2013-10-12 00:07:33 UTC (rev 30173)
@@ -183,7 +183,7 @@
GNUNET_assert (1 == *ok);
*ok = 8;
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &taskLast, cls);
- GNUNET_break (0 == PLIBC_KILL (getpid (), SIGTERM));
+ GNUNET_break (0 == PLIBC_KILL (getpid (), GNUNET_TERM_SIG));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30173 - in gnunet: . src/arm src/core src/dns src/hostlist src/include src/nat src/statistics src/testbed src/testing src/transport src/util,
gnunet <=