aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_hosts.c
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/testbed/testbed_api_hosts.c
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/testbed/testbed_api_hosts.c')
-rw-r--r--src/testbed/testbed_api_hosts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c
index 326a64924..f42c954ab 100644
--- a/src/testbed/testbed_api_hosts.c
+++ b/src/testbed/testbed_api_hosts.c
@@ -385,6 +385,8 @@ GNUNET_TESTBED_host_run_ (const struct GNUNET_TESTBED_Host *host,
385 if ((NULL == host) || (0 == host->id)) 385 if ((NULL == host) || (0 == host->id))
386 { 386 {
387 h->process = GNUNET_OS_start_process_vap (GNUNET_YES, 387 h->process = GNUNET_OS_start_process_vap (GNUNET_YES,
388 GNUNET_OS_INHERIT_STD_OUT |
389 GNUNET_OS_INHERIT_STD_ERR,
388 h->cpipe, NULL, 390 h->cpipe, NULL,
389 "gnunet-service-testbed", 391 "gnunet-service-testbed",
390 binary_argv); 392 binary_argv);
@@ -414,6 +416,8 @@ GNUNET_TESTBED_host_run_ (const struct GNUNET_TESTBED_Host *host,
414 remote_args[argp++] = NULL; 416 remote_args[argp++] = NULL;
415 GNUNET_assert (argp == argc + 6 + 1); 417 GNUNET_assert (argp == argc + 6 + 1);
416 h->process = GNUNET_OS_start_process_vap (GNUNET_YES, 418 h->process = GNUNET_OS_start_process_vap (GNUNET_YES,
419 GNUNET_OS_INHERIT_STD_OUT |
420 GNUNET_OS_INHERIT_STD_ERR,
417 h->cpipe, NULL, 421 h->cpipe, NULL,
418 "ssh", 422 "ssh",
419 remote_args); 423 remote_args);