title: How to terminate a socket accept blocking
body: <p>I developed a server with C code.</p>
  
  <p>I used the <code>accept()</code> function to keep my server listening on a giving socket.</p>
  
  <p>My server is launched in a thread.</p>
  
  <p>Now in other thread and for some condition I want to stop the <code>accept()</code> blocking and then close the related socket.</p>
  
  <p>How I can do that? Could <code>shutdown()</code> do that?</p>