Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Should be EINTR ? #1

Merged
merged 1 commit into from

2 participants

@kezhuw

No description provided.

@cloudwu cloudwu merged commit 4ebf8c9 into cloudwu:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 8, 2012
  1. @kezhuw

    Minor fix.

    kezhuw authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 3 deletions.
  1. +2 −3 mread.c
View
5 mread.c
@@ -387,10 +387,9 @@ mread_pull(struct mread_pool * self , int size) {
switch(errno) {
case EWOULDBLOCK:
return NULL;
+ case EINTR:
+ continue;
default:
- if (errno == EAGAIN) {
- continue;
- }
_close_active(self);
return NULL;
}
Something went wrong with that request. Please try again.