From 6dcf4223fdacc36aa2b3f50871121f7ba8794e9d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 30 May 2012 17:41:30 +0000 Subject: [PATCH] Set correct mode in Pipe constructor --- source/io/pipe.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/io/pipe.cpp b/source/io/pipe.cpp index 12f8fbd..3b74a0f 100644 --- a/source/io/pipe.cpp +++ b/source/io/pipe.cpp @@ -16,6 +16,8 @@ namespace IO { Pipe::Pipe(): reader(read_handle, 1024) { + mode = M_RDWR; + #ifdef WIN32 string name = format("\\\\.\\pipe\\%u.%p", GetCurrentProcessId(), this); *read_handle = CreateNamedPipe(name.c_str(), PIPE_ACCESS_INBOUND|FILE_FLAG_OVERLAPPED, PIPE_TYPE_BYTE, 1, 1024, 1024, 0, 0); -- 2.45.2