title: select() behavior with respect to broken pipe
body: <p>I'm using <code>select()</code> call to read and write to sockets<br/><br/>
  How to detect whether the other end has closed the socket? Essentially how to detect the broken pipe when using <code>select()</code>?</p>