title: send socket c ctrl+c behavior
body: <p>I'm witting an application based on a server and various client but I'm having a problem with the send command.
  Whenever I do <kbd>ctrl</kbd>+<kbd>c</kbd> on the client side the send operation kills the thread which is in and the process running (in order to have multiple clients I set a thread to which one).</p>
  
  <p>If the client ends (doing the close socket) properly the server doesn't die, but when I use the <kbd>ctrl</kbd>+<kbd>c</kbd> combination on the client both exit.</p>
  
  <p>What can I do to prevent send command to have this behavior?</p>
  
  <p>Thanks in Advance</p>