unixSetFdNonblocking
fn
bool 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
fd | A file descriptor |
nonblock | If true, set the descriptor to be non-blocking |
Returns
true if successful
Throws
[ErrorWrap]