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/arm/test_exponential_backoff.c | |
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/arm/test_exponential_backoff.c')
-rw-r--r-- | src/arm/test_exponential_backoff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 77bd9e2ce..1709dbdba 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c | |||
@@ -270,7 +270,7 @@ static void | |||
270 | arm_notify (void *cls, enum GNUNET_ARM_ProcessStatus status) | 270 | arm_notify (void *cls, enum GNUNET_ARM_ProcessStatus status) |
271 | { | 271 | { |
272 | GNUNET_assert (status == GNUNET_ARM_PROCESS_STARTING); | 272 | GNUNET_assert (status == GNUNET_ARM_PROCESS_STARTING); |
273 | GNUNET_ARM_start_service (arm, "do-nothing", TIMEOUT, &do_nothing_notify, | 273 | GNUNET_ARM_start_service (arm, "do-nothing", GNUNET_OS_INHERIT_STD_OUT_AND_ERR, TIMEOUT, &do_nothing_notify, |
274 | NULL); | 274 | NULL); |
275 | } | 275 | } |
276 | 276 | ||
@@ -365,7 +365,7 @@ task (void *cls, char *const *args, const char *cfgfile, | |||
365 | 365 | ||
366 | arm = GNUNET_ARM_connect (cfg, NULL); | 366 | arm = GNUNET_ARM_connect (cfg, NULL); |
367 | #if START_ARM | 367 | #if START_ARM |
368 | GNUNET_ARM_start_service (arm, "arm", GNUNET_TIME_UNIT_ZERO, &arm_notify, | 368 | GNUNET_ARM_start_service (arm, "arm", GNUNET_OS_INHERIT_STD_OUT_AND_ERR, GNUNET_TIME_UNIT_ZERO, &arm_notify, |
369 | NULL); | 369 | NULL); |
370 | #else | 370 | #else |
371 | arm_do_nothing (NULL, GNUNET_YES); | 371 | arm_do_nothing (NULL, GNUNET_YES); |