diff options
author | Nils Durner <durner@gnunet.org> | 2010-04-17 10:35:44 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2010-04-17 10:35:44 +0000 |
commit | 25e132881a18faed1e9438b882367df0dc4e090f (patch) | |
tree | b2886e0d1548eb92e5a3d3a3a4bc771b97cb838c /src/util/test_os_start_process.c | |
parent | 740a0bed33427d828fa0daedd331a5411d8b57a7 (diff) | |
download | gnunet-25e132881a18faed1e9438b882367df0dc4e090f.tar.gz gnunet-25e132881a18faed1e9438b882367df0dc4e090f.zip |
MinGW pipes
Diffstat (limited to 'src/util/test_os_start_process.c')
-rw-r--r-- | src/util/test_os_start_process.c | 6 |
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 | |||
102 | task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 102 | task (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; |