EBADF fd is not a valid file descriptor or is not open for reading.
从错误提示看什么叫 “is not open for reading”?