unixSetFdNonblocking

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.

bool
unixSetFdNonblocking
(
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