mozilla/rust — pull request #13355 by kballard (2014-04-06 07:43:23+00:00)
Title: libnative: Convert non-blocking fds to blocking when necessary

When doing a read or write on a file descriptor, if it returns EAGAIN or
EWOULDBLOCK, we need to turn off the O_NONBLOCK flag and try again. This
can happen because TTYs and FIFOs share the file descriptor flags with
other processes.

Fixes #13336.