This reverts commit be8f7d1716.
This was reverted as with this commit the program would consume large amounts
of cpu time just looping and calling the write function, which would not block.
If the output of an fd is a pipe with O_NONBLOCK set, the script will die as
soon as the pipe fills up due to the write call returning with EAGAIN. This
fixes that.
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>