Pipe.adoptRead

int adoptRead(ref EventLoop loop, Handle readEnd) @trusted

Adopt the read end of a pipe.

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

Parameters

loopEvent loop to register with.
readEndFile descriptor for the read end.

Returns

0 on success, or -1 with errno set.