Pipe.adoptWrite

int adoptWrite(ref EventLoop loop, Handle writeEnd) @trusted

Adopt the write end of a pipe.

Ownership transfer: on success, EVE takes ownership of writeEnd; the caller must not close it. On failure, ownership remains with the caller.

Parameters

loopEvent loop to register with.
writeEndFile descriptor for the write end.

Returns

0 on success, or -1 with errno set.