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/gns | |
parent | a06237deeec4aed38b09f633d7ebbeabb7da4c03 (diff) | |
download | gnunet-2a35e345a204cb357361406f28e07bf9076cb092.tar.gz gnunet-2a35e345a204cb357361406f28e07bf9076cb092.zip |
Allow redirection of STDERR when starting processes.
Diffstat (limited to 'src/gns')
-rwxr-xr-x | src/gns/gnunet-gns-import.c | 7 | ||||
-rw-r--r-- | src/gns/test_gns_proxy.c | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/gns/gnunet-gns-import.c b/src/gns/gnunet-gns-import.c index be7cbbb28..a844ae86b 100755 --- a/src/gns/gnunet-gns-import.c +++ b/src/gns/gnunet-gns-import.c | |||
@@ -129,8 +129,11 @@ run_process_and_wait (int pipe_control, | |||
129 | va_end (apc2); | 129 | va_end (apc2); |
130 | if (arglen > 0) | 130 | if (arglen > 0) |
131 | argp[-1] = '\0'; | 131 | argp[-1] = '\0'; |
132 | p = GNUNET_OS_start_process_va (pipe_control, std_inheritance, pipe_stdin, | 132 | p = GNUNET_OS_start_process_va (pipe_control, std_inheritance, |
133 | pipe_stdout, filename, ap); | 133 | pipe_stdin, |
134 | pipe_stdout, | ||
135 | NULL, | ||
136 | filename, ap); | ||
134 | va_end (ap); | 137 | va_end (ap); |
135 | if (NULL == p) | 138 | if (NULL == p) |
136 | { | 139 | { |
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index eac9e4449..9e2c29fb4 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -401,6 +401,7 @@ run (void *cls, | |||
401 | GNUNET_OS_INHERIT_STD_ALL, | 401 | GNUNET_OS_INHERIT_STD_ALL, |
402 | NULL, | 402 | NULL, |
403 | NULL, | 403 | NULL, |
404 | NULL, | ||
404 | "gnunet-gns-proxy", | 405 | "gnunet-gns-proxy", |
405 | "gnunet-gns-proxy", | 406 | "gnunet-gns-proxy", |
406 | "-c", tmp_cfgfile, NULL); | 407 | "-c", tmp_cfgfile, NULL); |