]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/pipe.cpp
Remove signal_closed now that closing is only done in the destructor
[libs/core.git] / source / io / pipe.cpp
index d8de5df2745ca60a1ad0f74912d767435b2f5a4a..c011cef54f86d6e8fb2adac02e6869e8e0422ef3 100644 (file)
@@ -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();
@@ -47,7 +47,6 @@ Pipe::~Pipe()
        signal_flush_required.emit();
        sys_close(handle[0]);
        sys_close(handle[1]);
-       signal_closed.emit();
 }
 
 void Pipe::set_block(bool b)