Permalink
Browse files

Minor fix.

  • Loading branch information...
1 parent 2cad632 commit b387a620bbe1ac86bd944196c08cd534e3dab2ab @kezhuw kezhuw 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 b387a62

Please sign in to comment.