title: ERROR on accept: Resource temporarily unavailable
body: <p>I am trying to create single threaded server in linux (red-hut) in C that will listen to multiple sockets.</p>
  
  <p>I need to use non-blocking sockets, when I set the flags to non-blocking like this:</p>
  
  <pre><code>int flagss = fcntl(socketfds[j],F_GETFL,0); 
  flagss |= O_NONBLOCK;
  fcntl(socketfds[j],F_SETFL,flagss);
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>ERROR on accept: Resource temporarily unavailable
  </code></pre>
  
  <p>Otherwise everything works perfectly.</p>