Duplicates a file descriptor onto another, retrying on EINTR.

Synopsis

Declared in <folly/FileUtil.h>

int
dup2NoInt(
    int oldFd,
    int newFd);

Return Value

The new file descriptor, or ‐1 on error.

Parameters

Name

Description

oldFd

The file descriptor to duplicate.

newFd

The target file descriptor.

Created with MrDocs