#include <errno.h>
#endif
#include <msp/core/systemerror.h>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
#include "handle_private.h"
#include "pipe.h"
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();
signal_flush_required.emit();
sys_close(handle[0]);
sys_close(handle[1]);
- signal_closed.emit();
}
void Pipe::set_block(bool b)