Skip to content

Commit

Permalink
Continue read from sock on EINTR error
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianM27 committed Jun 7, 2024
1 parent 3c367c5 commit afd7abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions memcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,8 @@ static int __read(int fd, void *buf, size_t count, int (*check_peer_ok)(void), i
continue;

break;
} else if (errno == EINTR) {
continue;
}

if (silent == FALSE)
Expand Down

0 comments on commit afd7abe

Please sign in to comment.