X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fpipe.cpp;h=3b74a0f2b6bea34ed7ca0a49991781de6331d6f8;hb=5b541316a8c7bbf8b812c0f1e2dbebaa6563b0ee;hp=12f8fbd3886ea7f269b125691a19b2074ee16d11;hpb=c2003dc69422262a5c90b3bd73b60b459f563c6e;p=libs%2Fcore.git 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);