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/statistics/test_statistics_api.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/statistics/test_statistics_api.c')
-rw-r--r-- | src/statistics/test_statistics_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statistics/test_statistics_api.c b/src/statistics/test_statistics_api.c index 11f02b817..ddebfa356 100644 --- a/src/statistics/test_statistics_api.c +++ b/src/statistics/test_statistics_api.c | |||
@@ -139,7 +139,7 @@ check () | |||
139 | struct GNUNET_OS_Process *proc; | 139 | struct GNUNET_OS_Process *proc; |
140 | 140 | ||
141 | proc = | 141 | proc = |
142 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-statistics", | 142 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-statistics", |
143 | "gnunet-service-statistics", | 143 | "gnunet-service-statistics", |
144 | "-c", "test_statistics_api_data.conf", NULL); | 144 | "-c", "test_statistics_api_data.conf", NULL); |
145 | #endif | 145 | #endif |
@@ -162,7 +162,7 @@ check () | |||
162 | #if START_SERVICE | 162 | #if START_SERVICE |
163 | /* restart to check persistence! */ | 163 | /* restart to check persistence! */ |
164 | proc = | 164 | proc = |
165 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-statistics", | 165 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-statistics", |
166 | "gnunet-service-statistics", | 166 | "gnunet-service-statistics", |
167 | "-c", "test_statistics_api_data.conf", NULL); | 167 | "-c", "test_statistics_api_data.conf", NULL); |
168 | #endif | 168 | #endif |