diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-21 22:37:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-21 22:37:52 +0000 |
commit | e8ee5c4c4069c159baabaa4071f066a7453e44c2 (patch) | |
tree | 0438104ae97aa4dd1aae8dd3670987fb08da790e /src/util | |
parent | f1498a855a05cf4498e32fdce5889dde1f767469 (diff) | |
download | gnunet-e8ee5c4c4069c159baabaa4071f066a7453e44c2.tar.gz gnunet-e8ee5c4c4069c159baabaa4071f066a7453e44c2.zip |
-LRN: W32-pipes-are-overlapped-by-default-now
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index 1454a71b1..7ce4f5808 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -2181,10 +2181,13 @@ GNUNET_DISK_pipe (int blocking_read, int blocking_write, int inherit_read, int i | |||
2181 | BOOL ret; | 2181 | BOOL ret; |
2182 | HANDLE tmp_handle; | 2182 | HANDLE tmp_handle; |
2183 | 2183 | ||
2184 | /* All pipes are overlapped. If you want them to block - just | ||
2185 | * call WriteFile() and ReadFile() with NULL overlapped pointer. | ||
2186 | */ | ||
2184 | ret = | 2187 | ret = |
2185 | create_selectable_pipe (&p->fd[0]->h, &p->fd[1]->h, NULL, 0, | 2188 | create_selectable_pipe (&p->fd[0]->h, &p->fd[1]->h, NULL, 0, |
2186 | blocking_read ? 0 : FILE_FLAG_OVERLAPPED, | 2189 | FILE_FLAG_OVERLAPPED, |
2187 | blocking_write ? 0 : FILE_FLAG_OVERLAPPED); | 2190 | FILE_FLAG_OVERLAPPED); |
2188 | if (!ret) | 2191 | if (!ret) |
2189 | { | 2192 | { |
2190 | GNUNET_free (p); | 2193 | GNUNET_free (p); |