folly::flockNoInt

Applies an advisory lock, retrying on EINTR.

Synopsis

Declared in <folly/FileUtil.h>

int
flockNoInt(
    int fd,
    int operation);

Return Value

0 on success, or -1 on error.

Parameters

NameDescription
fdThe file descriptor to lock.
operationThe flock() operation to perform.