diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-09 19:04:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-09 19:04:19 +0000 |
commit | 8f9464256fc06a884bf589b4004262a0549d11b3 (patch) | |
tree | a088b8acbebdefe2acf0b41cfed4418830275b78 /src/core | |
parent | 817ee37a75fb8eb5887023d1a5152cb528ee2d5a (diff) | |
download | gnunet-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/core')
-rw-r--r-- | src/core/test_core_api.c | 2 | ||||
-rw-r--r-- | src/core/test_core_api_reliability.c | 2 | ||||
-rw-r--r-- | src/core/test_core_api_start_only.c | 2 | ||||
-rw-r--r-- | src/core/test_core_quota_compliance.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index d1591328f..0512c9617 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -319,7 +319,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
319 | p->cfg = GNUNET_CONFIGURATION_create (); | 319 | p->cfg = GNUNET_CONFIGURATION_create (); |
320 | #if START_ARM | 320 | #if START_ARM |
321 | p->arm_proc = | 321 | p->arm_proc = |
322 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", | 322 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", |
323 | "gnunet-service-arm", | 323 | "gnunet-service-arm", |
324 | #if VERBOSE | 324 | #if VERBOSE |
325 | "-L", "DEBUG", | 325 | "-L", "DEBUG", |
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index 682424f89..d4afbc27d 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -429,7 +429,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
429 | p->cfg = GNUNET_CONFIGURATION_create (); | 429 | p->cfg = GNUNET_CONFIGURATION_create (); |
430 | #if START_ARM | 430 | #if START_ARM |
431 | p->arm_proc = | 431 | p->arm_proc = |
432 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", | 432 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", |
433 | "gnunet-service-arm", | 433 | "gnunet-service-arm", |
434 | "-c", cfgname, NULL); | 434 | "-c", cfgname, NULL); |
435 | #endif | 435 | #endif |
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c index 7704b4387..a502fce6d 100644 --- a/src/core/test_core_api_start_only.c +++ b/src/core/test_core_api_start_only.c | |||
@@ -139,7 +139,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
139 | { | 139 | { |
140 | p->cfg = GNUNET_CONFIGURATION_create (); | 140 | p->cfg = GNUNET_CONFIGURATION_create (); |
141 | p->arm_proc = | 141 | p->arm_proc = |
142 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", | 142 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", |
143 | "gnunet-service-arm", | 143 | "gnunet-service-arm", |
144 | "-c", cfgname, NULL); | 144 | "-c", cfgname, NULL); |
145 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 145 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index bee8c02b4..61fe21626 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c | |||
@@ -573,7 +573,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
573 | p->cfg = GNUNET_CONFIGURATION_create (); | 573 | p->cfg = GNUNET_CONFIGURATION_create (); |
574 | #if START_ARM | 574 | #if START_ARM |
575 | p->arm_proc = | 575 | p->arm_proc = |
576 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-arm", | 576 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", |
577 | "gnunet-service-arm", | 577 | "gnunet-service-arm", |
578 | "-c", cfgname, NULL); | 578 | "-c", cfgname, NULL); |
579 | #endif | 579 | #endif |