projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1498a8
)
-LRN: W32-pipes-are-overlapped-by-default-now
author
Christian Grothoff
<christian@grothoff.org>
Sat, 21 Jan 2012 22:37:52 +0000
(22:37 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 21 Jan 2012 22:37:52 +0000
(22:37 +0000)
src/util/disk.c
patch
|
blob
|
history
diff --git
a/src/util/disk.c
b/src/util/disk.c
index 1454a71b190a464f77b7e1901d48ecd10cc0374c..7ce4f580877522e3d85cc90cea6b190fabba4228 100644
(file)
--- 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
BOOL ret;
HANDLE tmp_handle;
+ /* All pipes are overlapped. If you want them to block - just
+ * call WriteFile() and ReadFile() with NULL overlapped pointer.
+ */
ret =
create_selectable_pipe (&p->fd[0]->h, &p->fd[1]->h, NULL, 0,
-
blocking_read ? 0 :
FILE_FLAG_OVERLAPPED,
-
blocking_write ? 0 :
FILE_FLAG_OVERLAPPED);
+ FILE_FLAG_OVERLAPPED,
+ FILE_FLAG_OVERLAPPED);
if (!ret)
{
GNUNET_free (p);