X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fpipe.cpp;h=b52c2bcb33131e02fc2a0d28f39aabc3e3e62593;hp=d8de5df2745ca60a1ad0f74912d767435b2f5a4a;hb=a97f614de0984d6dda2173ca72815ac1062faf7a;hpb=bff25a255af05f1ddd6c956a97fa6b8c50c9b22d diff --git a/source/io/pipe.cpp b/source/io/pipe.cpp index d8de5df..b52c2bc 100644 --- a/source/io/pipe.cpp +++ b/source/io/pipe.cpp @@ -21,7 +21,7 @@ Pipe::Pipe(): if(!handle[0]) throw system_error("CreateNamedPipe"); - *handle[1] = CreateFile(name.c_str(), GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); + *handle[1] = CreateFile(name.c_str(), GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0); if(!handle[1]) { unsigned err = GetLastError();