title: Can a socket be closed from another thread when a send / recv on the same socket is going on?
body: <p>Can a socket be closed from another thread when a send / recv on the same socket is going on?</p>
  
  <p>Suppose one thread is in blocking recv call and another thread closes the same socket, will the thread in the recv call know this and come out safely?</p>
  
  <p>I would like to know if the behavior will differ between different OS / Platforms. If yes, how will it behave in Solaris?</p>