summaryrefslogtreecommitdiff
path: root/src/util/test_os_start_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_os_start_process.c')
-rw-r--r--src/util/test_os_start_process.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index f768e3ccf..3b34beedf 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -102,8 +102,8 @@ static void
102task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 102task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
103{ 103{
104 char *fn; 104 char *fn;
105
106 const struct GNUNET_DISK_FileHandle *stdout_read_handle; 105 const struct GNUNET_DISK_FileHandle *stdout_read_handle;
106 struct GNUNET_DISK_FileHandle *wh;
107 107
108 GNUNET_asprintf(&fn, "cat"); 108 GNUNET_asprintf(&fn, "cat");
109 109
@@ -126,8 +126,10 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
126 /* Close the read end of the write pipe */ 126 /* Close the read end of the write pipe */
127 GNUNET_DISK_pipe_close_end(hello_pipe_stdin, GNUNET_DISK_PIPE_END_READ); 127 GNUNET_DISK_pipe_close_end(hello_pipe_stdin, GNUNET_DISK_PIPE_END_READ);
128 128
129 wh = GNUNET_DISK_pipe_handle (hello_pipe_stdin, GNUNET_DISK_PIPE_END_WRITE);
130
129 /* Write the test_phrase to the cat process */ 131 /* Write the test_phrase to the cat process */
130 if (GNUNET_DISK_file_write(hello_pipe_stdin, test_phrase, strlen(test_phrase) + 1) != GNUNET_YES) 132 if (GNUNET_DISK_file_write(wh, test_phrase, strlen(test_phrase) + 1) != GNUNET_YES)
131 { 133 {
132 ok = 1; 134 ok = 1;
133 return; 135 return;