aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-09 19:04:19 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-09 19:04:19 +0000
commit8f9464256fc06a884bf589b4004262a0549d11b3 (patch)
treea088b8acbebdefe2acf0b41cfed4418830275b78 /src/hostlist
parent817ee37a75fb8eb5887023d1a5152cb528ee2d5a (diff)
downloadgnunet-8f9464256fc06a884bf589b4004262a0549d11b3.tar.gz
gnunet-8f9464256fc06a884bf589b4004262a0549d11b3.zip
-LRN: Another take on std descriptor inheritance
Now descriptors are not inherited by default, you have to pass a set of flags to make it so. When pipes are given, flags have no effect. gnunet-arm now has two options to block stdout and stderr from being passed to gnunet-service-arm
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist.c2
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_learning.c4
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_reconnect.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c
index 5f07ce415..6e9f31a20 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist.c
@@ -133,7 +133,7 @@ setup_peer (struct PeerContext *p, const char *cfgname)
133{ 133{
134 p->cfg = GNUNET_CONFIGURATION_create (); 134 p->cfg = GNUNET_CONFIGURATION_create ();
135 p->arm_proc = 135 p->arm_proc =
136 GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", 136 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm",
137 "gnunet-service-arm", 137 "gnunet-service-arm",
138 "-c", cfgname, NULL); 138 "-c", cfgname, NULL);
139 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); 139 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
index 6f0ab4c9e..8a0992dda 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
@@ -385,7 +385,7 @@ setup_learn_peer (struct PeerContext *p, const char *cfgname)
385 385
386 p->cfg = GNUNET_CONFIGURATION_create (); 386 p->cfg = GNUNET_CONFIGURATION_create ();
387 p->arm_proc = 387 p->arm_proc =
388 GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", 388 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm",
389 "gnunet-service-arm", 389 "gnunet-service-arm",
390 "-c", cfgname, NULL); 390 "-c", cfgname, NULL);
391 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); 391 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
@@ -416,7 +416,7 @@ setup_adv_peer (struct PeerContext *p, const char *cfgname)
416{ 416{
417 p->cfg = GNUNET_CONFIGURATION_create (); 417 p->cfg = GNUNET_CONFIGURATION_create ();
418 p->arm_proc = 418 p->arm_proc =
419 GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", 419 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm",
420 "gnunet-service-arm", 420 "gnunet-service-arm",
421 "-c", cfgname, NULL); 421 "-c", cfgname, NULL);
422 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); 422 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
index ff6e4177d..1b1df9a3a 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
@@ -144,7 +144,7 @@ setup_peer (struct PeerContext *p, const char *cfgname)
144 p->cfg = GNUNET_CONFIGURATION_create (); 144 p->cfg = GNUNET_CONFIGURATION_create ();
145#if START_ARM 145#if START_ARM
146 p->arm_proc = 146 p->arm_proc =
147 GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", 147 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm",
148 "gnunet-service-arm", 148 "gnunet-service-arm",
149#if VERBOSE 149#if VERBOSE
150 "-L", "DEBUG", 150 "-L", "DEBUG",