Catch EAGAIN and sleep a bit
Include errno