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/hostlist/test_gnunet_daemon_hostlist_learning.c | |
parent | a06237deeec4aed38b09f633d7ebbeabb7da4c03 (diff) | |
download | gnunet-2a35e345a204cb357361406f28e07bf9076cb092.tar.gz gnunet-2a35e345a204cb357361406f28e07bf9076cb092.zip |
Allow redirection of STDERR when starting processes.
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist_learning.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index f581b532a..8a5cdac7a 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -385,9 +385,11 @@ setup_learn_peer (struct PeerContext *p, const char *cfgname) | |||
385 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm"); | 385 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm"); |
386 | p->cfg = GNUNET_CONFIGURATION_create (); | 386 | p->cfg = GNUNET_CONFIGURATION_create (); |
387 | p->arm_proc = | 387 | p->arm_proc = |
388 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, binary, | 388 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
389 | "gnunet-service-arm", | 389 | NULL, NULL, NULL, |
390 | "-c", cfgname, NULL); | 390 | binary, |
391 | "gnunet-service-arm", | ||
392 | "-c", cfgname, NULL); | ||
391 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 393 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
392 | if (GNUNET_OK == | 394 | if (GNUNET_OK == |
393 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "HOSTLIST", "HOSTLISTFILE", | 395 | GNUNET_CONFIGURATION_get_value_string (p->cfg, "HOSTLIST", "HOSTLISTFILE", |
@@ -420,7 +422,9 @@ setup_adv_peer (struct PeerContext *p, const char *cfgname) | |||
420 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm"); | 422 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm"); |
421 | p->cfg = GNUNET_CONFIGURATION_create (); | 423 | p->cfg = GNUNET_CONFIGURATION_create (); |
422 | p->arm_proc = | 424 | p->arm_proc = |
423 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, binary, | 425 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
426 | NULL, NULL, NULL, | ||
427 | binary, | ||
424 | "gnunet-service-arm", | 428 | "gnunet-service-arm", |
425 | "-c", cfgname, NULL); | 429 | "-c", cfgname, NULL); |
426 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 430 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |