What is select supposed to do if you close a monitored fd?
问题 I can test this to find the behavior but that's not the point. In my answer to another question, a commenter recommended closing a monitored fd from another thread to wake up select . Another commenter couldn't find a reference to this behavior in the standard, and I can't find one either. Can someone provide a pointer to the standard on this behavior? 回答1: From the description of select in "The Open Group Base Specifications Issue 7": A descriptor shall be considered ready for reading when a