From: Mikko Rasa Date: Wed, 30 May 2012 17:41:30 +0000 (+0000) Subject: Set correct mode in Pipe constructor X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6dcf4223fdacc36aa2b3f50871121f7ba8794e9d;p=libs%2Fcore.git Set correct mode in Pipe constructor --- 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);