Function FD.dup

Duplicate an FD

FD dup () @nogc @trusted;

Does the same as the dup system call.

Returns

An FD representing a duplicate of the current FD.