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?