diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2014-02-20 10:35:33 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2014-02-20 10:35:33 +0000 |
commit | 2a35e345a204cb357361406f28e07bf9076cb092 (patch) | |
tree | 8c51b5dae07a1f3a3a6a13ac6c623e0b0df2a070 /src/statistics | |
parent | a06237deeec4aed38b09f633d7ebbeabb7da4c03 (diff) | |
download | gnunet-2a35e345a204cb357361406f28e07bf9076cb092.tar.gz gnunet-2a35e345a204cb357361406f28e07bf9076cb092.zip |
Allow redirection of STDERR when starting processes.
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/test_statistics_api.c | 6 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_loop.c | 2 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_watch.c | 3 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_watch_zero_value.c | 3 |
4 files changed, 9 insertions, 5 deletions
diff --git a/src/statistics/test_statistics_api.c b/src/statistics/test_statistics_api.c index aa9088f35..77f6bee80 100644 --- a/src/statistics/test_statistics_api.c +++ b/src/statistics/test_statistics_api.c | |||
@@ -146,7 +146,8 @@ main (int argc, char *argv_ign[]) | |||
146 | NULL); | 146 | NULL); |
147 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 147 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
148 | proc = | 148 | proc = |
149 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, | 149 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
150 | NULL, NULL, NULL, | ||
150 | binary, | 151 | binary, |
151 | "gnunet-service-statistics", | 152 | "gnunet-service-statistics", |
152 | "-c", "test_statistics_api_data.conf", NULL); | 153 | "-c", "test_statistics_api_data.conf", NULL); |
@@ -169,7 +170,8 @@ main (int argc, char *argv_ign[]) | |||
169 | ok = 1; | 170 | ok = 1; |
170 | /* restart to check persistence! */ | 171 | /* restart to check persistence! */ |
171 | proc = | 172 | proc = |
172 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, | 173 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
174 | NULL, NULL, NULL, | ||
173 | binary, | 175 | binary, |
174 | "gnunet-service-statistics", | 176 | "gnunet-service-statistics", |
175 | "-c", "test_statistics_api_data.conf", NULL); | 177 | "-c", "test_statistics_api_data.conf", NULL); |
diff --git a/src/statistics/test_statistics_api_loop.c b/src/statistics/test_statistics_api_loop.c index 7a7b44c1f..13520d702 100644 --- a/src/statistics/test_statistics_api_loop.c +++ b/src/statistics/test_statistics_api_loop.c | |||
@@ -94,7 +94,7 @@ main (int argc, char *argv_ign[]) | |||
94 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 94 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
95 | proc = | 95 | proc = |
96 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | 96 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
97 | NULL, NULL, | 97 | NULL, NULL, NULL, |
98 | binary, | 98 | binary, |
99 | "gnunet-service-statistics", | 99 | "gnunet-service-statistics", |
100 | "-c", "test_statistics_api_data.conf", NULL); | 100 | "-c", "test_statistics_api_data.conf", NULL); |
diff --git a/src/statistics/test_statistics_api_watch.c b/src/statistics/test_statistics_api_watch.c index 78bc425c5..05806ac4b 100644 --- a/src/statistics/test_statistics_api_watch.c +++ b/src/statistics/test_statistics_api_watch.c | |||
@@ -122,7 +122,8 @@ main (int argc, char *argv_ign[]) | |||
122 | 122 | ||
123 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 123 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
124 | proc = | 124 | proc = |
125 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, | 125 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
126 | NULL, NULL, NULL, | ||
126 | binary, | 127 | binary, |
127 | "gnunet-service-statistics", | 128 | "gnunet-service-statistics", |
128 | "-c", "test_statistics_api_data.conf", NULL); | 129 | "-c", "test_statistics_api_data.conf", NULL); |
diff --git a/src/statistics/test_statistics_api_watch_zero_value.c b/src/statistics/test_statistics_api_watch_zero_value.c index c42c44428..462c91ebe 100644 --- a/src/statistics/test_statistics_api_watch_zero_value.c +++ b/src/statistics/test_statistics_api_watch_zero_value.c | |||
@@ -157,7 +157,8 @@ main (int argc, char *argv_ign[]) | |||
157 | 157 | ||
158 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 158 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
159 | proc = | 159 | proc = |
160 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, | 160 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
161 | NULL, NULL, NULL, | ||
161 | binary, | 162 | binary, |
162 | "gnunet-service-statistics", | 163 | "gnunet-service-statistics", |
163 | "-c", "test_statistics_api_data.conf", NULL); | 164 | "-c", "test_statistics_api_data.conf", NULL); |