Re: read/recv sometimes returns EAGAIN instead of EINTR on SMP machines

From: Peter Niemayer (niemayer@isg.de)
Date: Tue Jul 23 2002 - 05:14:31 EST


David Schwartz wrote:

> My guess is that select did return EINTR, but for some reason your
> application examined the fd sets anyway. So the bug is in not ignoring the fd
> sets when select returns an error, which is an application issue.

As you can see in the sample source code I provided, the problem is not
caused by the application not testing select() for returning EINTR - in
that case, the code just select()s again...

Regards,

Peter Niemayer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:42 EST