title: System calls and EINTR error code
body: <p>Is there any expert out there that can help me with the following?</p>
  
  <p>I have the following system calls in C:</p>
  
  <pre><code>access()
  unlink()
  setsockopt()
  fcntl()
  setsid()
  socket()
  bind()
  listen()
  </code></pre>
  
  <p>I want to know if they may fail with error code -1 and errno EINTR/EAGAIN.</p>
  
  <p>Should I have to handle EINTR/EAGAIN for these?</p>
  
  <p>The documentation do not refer anything related to EINTR/EAGAIN but many people I see handle it.</p>
  
  <p>Which is the correct?</p>
  
  <p>Here is how I register signal handlers : <a href="https://gitorious.org/zepto-web-server/zepto-web-server/source/b1b03b9ecccfe9646e34caf3eb04689e2bbc54dd:src/signal-dispatcher-utility.c" rel="nofollow">https://gitorious.org/zepto-web-server/zepto-web-server/source/b1b03b9ecccfe9646e34caf3eb04689e2bbc54dd:src/signal-dispatcher-utility.c</a></p>
  
  <p>With this configuration: <a href="https://gitorious.org/zepto-web-server/zepto-web-server/source/b1b03b9ecccfe9646e34caf3eb04689e2bbc54dd:src/server-signals-support-utility.c" rel="nofollow">https://gitorious.org/zepto-web-server/zepto-web-server/source/b1b03b9ecccfe9646e34caf3eb04689e2bbc54dd:src/server-signals-support-utility.c</a></p>
  
  <p>Also here is a commit that I added some EINTR/EAGAIN handling in some system calls that I know that return EINTR or EAGAIN : <a href="https://gitorious.org/zepto-web-server/zepto-web-server/commit/b1b03b9ecccfe9646e34caf3eb04689e2bbc54dd" rel="nofollow">https://gitorious.org/zepto-web-server/zepto-web-server/commit/b1b03b9ecccfe9646e34caf3eb04689e2bbc54dd</a></p>