X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=f71a7253a0296e8c0f849147287b5cede93233e0;hp=c22fa84d461ed48a7a35c980ad32b8c8129b65c8;hb=1a05bcbf311d82afc8c39314be3ae035fe65c911;hpb=23f053fc0a392079213bf2f979b7c098baa9d30c diff --git a/dccp_recv.c b/dccp_recv.c index c22fa84d..f71a7253 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2009 Andre Noll + * Copyright (C) 2006-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -166,6 +166,9 @@ static void dccp_recv_post_select(struct sched *s, struct task *t) if (iovcnt == 0) goto err; ret = para_readv(pdd->fd, iov, iovcnt); + /* EAGAIN is possible even if FD_ISSET */ + if (ret < 0 && is_errno(-ret, EAGAIN)) + return; if (ret == 0) ret = -E_RECV_EOF; if (ret < 0)