aboutsummaryrefslogtreecommitdiff
path: root/src/util/disk.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-02-14 16:15:19 +0000
committerLRN <lrn1986@gmail.com>2013-02-14 16:15:19 +0000
commitde1304424a62b8dee28118966414bd3ab9bd9fbc (patch)
tree738778b9ea7c7dc132268032542a18d550467808 /src/util/disk.c
parentfb325794836981c17396a187f97da0c542ff34d0 (diff)
downloadgnunet-de1304424a62b8dee28118966414bd3ab9bd9fbc.tar.gz
gnunet-de1304424a62b8dee28118966414bd3ab9bd9fbc.zip
Minimal W32 version to XP, use uniqueness flag
Diffstat (limited to 'src/util/disk.c')
-rw-r--r--src/util/disk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index 47325fe4e..53e8867e2 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -2258,9 +2258,8 @@ create_selectable_pipe (PHANDLE read_pipe_ptr, PHANDLE write_pipe_ptr,
2258 * a waste, since only a single direction is actually used. 2258 * a waste, since only a single direction is actually used.
2259 * It's important to only allow a single instance, to ensure that 2259 * It's important to only allow a single instance, to ensure that
2260 * the pipe was not created earlier by some other process, even if 2260 * the pipe was not created earlier by some other process, even if
2261 * the pid has been reused. We avoid FILE_FLAG_FIRST_PIPE_INSTANCE 2261 * the pid has been reused. */
2262 * because that is only available for Win2k SP2 and WinXP. */ 2262 read_pipe = CreateNamedPipeA (pipename, PIPE_ACCESS_INBOUND | FILE_FLAG_FIRST_PIPE_INSTANCE | dwReadMode, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE, 1, /* max instances */
2263 read_pipe = CreateNamedPipeA (pipename, PIPE_ACCESS_INBOUND | dwReadMode, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE, 1, /* max instances */
2264 psize, /* output buffer size */ 2263 psize, /* output buffer size */
2265 psize, /* input buffer size */ 2264 psize, /* input buffer size */
2266 NMPWAIT_USE_DEFAULT_WAIT, sa_ptr); 2265 NMPWAIT_USE_DEFAULT_WAIT, sa_ptr);