unixSetFdNonblocking

fun unixSetFdNonblocking(fd: <Error class: unknown class>, nonblock: Boolean): <Error class: unknown class><Boolean>

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.

Return

true if successful

Since

2.30

Parameters

fd

A file descriptor

nonblock

If true, set the descriptor to be non-blocking