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. Since 2.30

class UnixUtils
static
int
setFdNonblocking
(
int fd
,)

Parameters

fd int

A file descriptor

nonblock int

If TRUE, set the descriptor to be non-blocking

Return Value

Type: int

TRUE if successful

Throws

GException on failure.

Meta