Re: behavior of recvmmsg() on blocking sockets

From: Ulrich Drepper
Date: Fri Mar 26 2010 - 08:00:37 EST


On Wed, Mar 24, 2010 at 16:35, Brandon Black <blblack@xxxxxxxxx> wrote:
> + Â Â Â Â Â Â Â Â/* MSG_WAITFORONE turns on MSG_DONTWAIT after one packet */
> + Â Â Â Â Â Â Â if (!datagrams++ && flags & MSG_WAITFORONE)
> + Â Â Â Â Â Â Â Â Â Â Â flags |= MSG_DONTWAIT;

There should be an extra pair of parenthesis around the & operands but
aside from that I could imagine this to work.

Would be nice if the netdev folks would respond.
--
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/