From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753286AbaE0TVW (ORCPT ); Tue, 27 May 2014 15:21:22 -0400 Received: from mail.kernel.org ([198.145.19.201]:41343 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752462AbaE0TVU (ORCPT ); Tue, 27 May 2014 15:21:20 -0400 Date: Tue, 27 May 2014 16:21:15 -0300 From: Arnaldo Carvalho de Melo To: "Michael Kerrisk (man-pages)" Cc: lkml , "linux-man@vger.kernel.org" , netdev , =?utf-8?B?T25kxZllaiBCw61sa2E=?= , Caitlin Bestler , Neil Horman , Elie De Brauwer , David Miller , Steven Whitehouse , =?iso-8859-1?Q?R=E9mi?= Denis-Courmont , Paul Moore , Chris Friesen Subject: Re: [PATCH/RFC] Re: recvmmsg() timeout behavior strangeness [RESEND] Message-ID: <20140527192115.GD25474@kernel.org> References: <536101C9.9090601@gmail.com> <20140512143451.GB13801@kernel.org> <20140521210535.GA5414@kernel.org> <537E0961.8040005@gmail.com> <20140526134647.GB8176@kernel.org> <20140526211706.GA25474@kernel.org> <5384BEC5.2080607@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5384BEC5.2080607@gmail.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, May 27, 2014 at 06:35:17PM +0200, Michael Kerrisk (man-pages) escreveu: > On 05/26/2014 11:17 PM, Arnaldo Carvalho de Melo wrote: > > Can you try the attached patch on top of the first one? > Patches on patches is a way to make your testers work unnecessarily > harder. Also, it means that anyone else who was interested in this It was meant to highlight the changes with regard to the previous patch, i.e. to make things easier for reviewing. > thread likely got lost at this point, because they probably didn't > save the first patch. All of this to say: it makes life much easier > if you provide a complete new self-contained patch on each iteration. If you prefer it that way, find one attached, that I was about to send (but you can wait till I use your program to test it ;-) ) > > It starts adding explicit parentheses on a ternary, as David requested, > > and then should return the remaining timeouts in cases like signals, > > etc. > > > > Please let me know if this is enough. > > Nope, it doesn't fix the problem. (I applied both patches against 3.15-rc7) What was the problem experienced? > > P.S. compile testing while sending this message :-) > > Okay -- how about some real testing for the next version ;-). I've appended Hey, you were provinding that real testing! thanks for that! :-) > my test program below. You can use it as follows: > > ./t_recvmmsg ... > > (The timeout can also be '-' meaning use NULL as the timeout argument.) Thanks for the test proggie, will use it. > Cheers, > > Michael