Re: UDP recvmsg blocks after select(), 2.6 bug?
From: Alan Cox
Date: Wed Oct 06 2004 - 12:48:06 EST
On Mer, 2004-10-06 at 15:52, Joris van Rantwijk wrote:
> My understanding of POSIX is limited, but it seems to me that a read call
> must never block after select just said that it's ok to read from the
> descriptor. So any such behaviour would be a kernel bug.
Select indicates there may be data. That is all - it might also be an
error, it might turn out to be wrong.
You should always combine select with nonblocking I/O
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/