HTTPRequest icon indicating copy to clipboard operation
HTTPRequest copied to clipboard

What is the reason for handling interrupted system calls (EINTR) throughout the code?

Open shlomnissan opened this issue 1 year ago • 0 comments

I noticed that you are checking for EINTR across all socket functions. Can you explain why? As far as I understand, in order for a system call to be interrupted, the following conditions must be met:

  • The process must be blocked by a system call (which only occurs in select since you are using a non-blocking socket).
  • The process must be catching signals, but the code does not catch any signals.

shlomnissan avatar Jul 01 '23 21:07 shlomnissan