Permalink
Browse files

Merge pull request #1 from kezhuw/master

Should be EINTR ?
  • Loading branch information...
2 parents 2cad632 + b387a62 commit 4ebf8c9792b9232524e4784007a6358efba6d4b3 @cloudwu committed Apr 8, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 mread.c
View
@@ -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;
}

0 comments on commit 4ebf8c9

Please sign in to comment.