结果select返回1了,这没问题呀,
以下摘自<<Unix Network Programming Volume 1,Third Edition The Sockets Networking API>>
A socket is ready for reading if any of the following four conditions is true:
b.The read half of the connection is closed (i.e., a TCP connection that has received a FIN). A read operation on the socket will not block and will return 0 (i.e., EOF).
A socket is ready for writing if any of the following four conditions is true:
b.The write half of the connection is closed. A write operation on the socket will generate SIGPIPE