fix readv and write bug, ignore EINTR and EAGIN