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 | |
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')
-rw-r--r-- | src/statistics/test_statistics_api.c | 4 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_loop.c | 2 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_watch.c | 2 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_watch_zero_value.c | 2 |
4 files changed, 5 insertions, 5 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 |
diff --git a/src/statistics/test_statistics_api_loop.c b/src/statistics/test_statistics_api_loop.c index 58114f278..ae798b830 100644 --- a/src/statistics/test_statistics_api_loop.c +++ b/src/statistics/test_statistics_api_loop.c | |||
@@ -97,7 +97,7 @@ check () | |||
97 | struct GNUNET_OS_Process *proc; | 97 | struct GNUNET_OS_Process *proc; |
98 | 98 | ||
99 | proc = | 99 | proc = |
100 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-statistics", | 100 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-statistics", |
101 | "gnunet-service-statistics", | 101 | "gnunet-service-statistics", |
102 | #if DEBUG_STATISTICS | 102 | #if DEBUG_STATISTICS |
103 | "-L", "DEBUG", | 103 | "-L", "DEBUG", |
diff --git a/src/statistics/test_statistics_api_watch.c b/src/statistics/test_statistics_api_watch.c index e976bd473..f3524aa7c 100644 --- a/src/statistics/test_statistics_api_watch.c +++ b/src/statistics/test_statistics_api_watch.c | |||
@@ -127,7 +127,7 @@ check () | |||
127 | struct GNUNET_OS_Process *proc; | 127 | struct GNUNET_OS_Process *proc; |
128 | 128 | ||
129 | proc = | 129 | proc = |
130 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-statistics", | 130 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-statistics", |
131 | "gnunet-service-statistics", | 131 | "gnunet-service-statistics", |
132 | #if VERBOSE | 132 | #if VERBOSE |
133 | "-L", "DEBUG", | 133 | "-L", "DEBUG", |
diff --git a/src/statistics/test_statistics_api_watch_zero_value.c b/src/statistics/test_statistics_api_watch_zero_value.c index 9fadf6a6c..fe3974fc9 100644 --- a/src/statistics/test_statistics_api_watch_zero_value.c +++ b/src/statistics/test_statistics_api_watch_zero_value.c | |||
@@ -160,7 +160,7 @@ check () | |||
160 | struct GNUNET_OS_Process *proc; | 160 | struct GNUNET_OS_Process *proc; |
161 | 161 | ||
162 | proc = | 162 | proc = |
163 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-service-statistics", | 163 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-statistics", |
164 | "gnunet-service-statistics", | 164 | "gnunet-service-statistics", |
165 | #if VERBOSE | 165 | #if VERBOSE |
166 | "-L", "DEBUG", | 166 | "-L", "DEBUG", |