set_nonblocking(
fd,enable) ->was_nonblocking,err
Toggle O_NONBLOCK on an arbitrary fd
Sets or clears O_NONBLOCK on fd. Returns the previous non-blocking
state so callers can restore it. Required before cooperatively reading
a shared fd (e.g. stdin) through the event loop.