readv from Socket returns ENOENT
What can be the reason for a Linux socket to set the error to ENOENT on readv() ?
The socket in question is n开发者_运维百科on-blocking and runs on Ubuntu 10.04
errno
is only set when a system call returns -1. You should only read it after checking the return value of readv
.
精彩评论