[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a36005b51003260500v6d8b7a5av1bbba848cc8998a4@mail.gmail.com>
Date: Fri, 26 Mar 2010 05:00:11 -0700
From: Ulrich Drepper <drepper@...il.com>
To: Brandon Black <blblack@...il.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: behavior of recvmmsg() on blocking sockets
On Wed, Mar 24, 2010 at 16:35, Brandon Black <blblack@...il.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists