开发者

readv from Socket returns ENOENT

开发者 https://www.devze.com 2023-02-17 01:53 出处:网络
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.04errno is only set when a system call re

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消