Re: UDP recvmsg blocks after select(), 2.6 bug?

From: Paul Jakma
Date: Thu Oct 07 2004 - 08:25:23 EST


On Thu, 7 Oct 2004, Martijn Sipkema wrote:

Would you care to provide any real answers or are you just telling
me to shut up because whatever Linux does is good, and not appear
unreasonable by adding a ;) ..?

No, I'm saying it's simple good practice to set O_NONBLOCK on sockets if one expects not to block - any other expectation is not robust, never mind what POSIX says about select().

regards,
--
Paul Jakma paul@xxxxxxxx paul@xxxxxxxxx Key ID: 64A2FF6A
Fortune:
You know you are getting old when you think you should drive the speed limit.
-- E.A. Gilliam
-
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/