aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_os_start_process.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-09-15 08:31:21 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-09-15 08:31:21 +0000
commit5c434a60afadd065ab25900dc11756067d58fc1d (patch)
tree3179852ae53180fc42d983b0292ed9fab2a53131 /src/util/test_os_start_process.c
parentd1e367b5bcff3b7c9db57fe7ce8f25ab45a6894b (diff)
downloadgnunet-5c434a60afadd065ab25900dc11756067d58fc1d.tar.gz
gnunet-5c434a60afadd065ab25900dc11756067d58fc1d.zip
0001602: A patch to fix process spawning with redirected std streams
Diffstat (limited to 'src/util/test_os_start_process.c')
-rw-r--r--src/util/test_os_start_process.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index 550ea0b39..97c5e99c0 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -105,11 +105,14 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
105 char *fn; 105 char *fn;
106 const struct GNUNET_DISK_FileHandle *stdout_read_handle; 106 const struct GNUNET_DISK_FileHandle *stdout_read_handle;
107 const struct GNUNET_DISK_FileHandle *wh; 107 const struct GNUNET_DISK_FileHandle *wh;
108 108#ifndef WINDOWS
109 GNUNET_asprintf(&fn, "cat"); 109 GNUNET_asprintf(&fn, "cat");
110#else
111 GNUNET_asprintf(&fn, "./.libs/test_os_start_process_cat.exe");
112#endif
110 113
111 hello_pipe_stdin = GNUNET_DISK_pipe(GNUNET_YES); 114 hello_pipe_stdin = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO);
112 hello_pipe_stdout = GNUNET_DISK_pipe(GNUNET_YES); 115 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_NO, GNUNET_YES);
113 116
114 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL)) 117 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL))
115 { 118 {