Close socket and select()

Posted by kamziro on Stack Overflow See other posts from Stack Overflow or by kamziro
Published on 2010-03-28T14:35:20Z Indexed on 2010/03/28 14:43 UTC
Read the original article Hit count: 244

Filed under:
|

So I need to close a particular connection, but the problem is another thread is, at the same time, doing a select() which has the socket as one of the file descriptors it's watching.

Will the select() terminate gracefully, or will anything bad happen?

© Stack Overflow or respective owner

Related posts about unix

Related posts about sockets