unixSetFdNonblocking

fnbool unixSetFdNonblocking(int fd, bool nonblock)

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.

Parameters

fdA file descriptor
nonblockIf true, set the descriptor to be non-blocking

Returns

true if successful

Throws

[ErrorWrap]