posix - What is select supposed to do if you close a monitored fd? -


i can test find behavior that's not point. in my answer question, commenter recommended closing monitored fd thread wake select. commenter couldn't find reference behavior in standard, , can't find 1 either.

can provide pointer standard on behavior?

from description of select in "the open group base specifications issue 7":

a descriptor shall considered ready reading when call input function o_nonblock clear not block, whether or not function transfer data successfully. (the function might return data, end-of-file indication, or error other 1 indicating blocked, , in each of these cases descriptor shall considered ready reading.)

so, method portable.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -