wpiutil uv: Pass IPC value of listening pipe to accepted pipe (#1576)

Otherwise, the acception fails.
This commit is contained in:
Thad House
2019-01-30 20:37:28 -08:00
committed by Peter Johnson
parent 4a6087ed56
commit f156a00117

View File

@@ -26,7 +26,7 @@ std::shared_ptr<Pipe> Pipe::Create(Loop& loop, bool ipc) {
}
std::shared_ptr<Pipe> Pipe::Accept() {
auto client = Create(GetLoopRef());
auto client = Create(GetLoopRef(), GetRaw()->ipc);
if (!client) return nullptr;
if (!Accept(client)) {
client->Release();