UnixUtils.setFdNonblocking

Control the non-blocking state of the given file descriptor, according to nonblock. On most systems this uses O_NONBLOCK, but on some older ones may use O_NDELAY.

struct UnixUtils
static
bool
setFdNonblocking
(
int fd
,)

Parameters

fd int

A file descriptor

nonblock bool

If TRUE, set the descriptor to be non-blocking

Return Value

Type: bool

TRUE if successful

Throws

GException on failure.

Meta

Since

2.30