Skip to content

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

Description

@shlomnissan

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions