Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SAeRj-0001VP-NG for ltp-list@lists.sourceforge.net; Thu, 22 Mar 2012 09:36:39 +0000 Received: from smtp.mei.co.jp ([133.183.100.20]) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1SAeRc-00027g-Ra for ltp-list@lists.sourceforge.net; Thu, 22 Mar 2012 09:36:39 +0000 Date: Thu, 22 Mar 2012 18:36:40 +0900 From: Akira Takeuchi In-Reply-To: <4F6AE07A.4050509@cn.fujitsu.com> References: <20120322132353.AB97.38390934@jp.panasonic.com> <4F6AE07A.4050509@cn.fujitsu.com> Message-Id: <20120322183640.ABAE.38390934@jp.panasonic.com> MIME-Version: 1.0 Subject: Re: [LTP] [PATCH] mq_timedreceive: 10-2.c: check timeout error rather than invalid parameter error List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Peng Haitao Cc: ltp-list@lists.sourceforge.net Thank you for replying. On Thu, 22 Mar 2012 16:19:06 +0800 Peng Haitao wrote: > > On the other hand, actually, timeout error should not be returned when message > > can be performed immediately. > > > > POSIX spec does not say this, so I think it is not necessary to check timeout error. Really ? POSIX spec describes as below: Under no circumstance shall the operation fail with a timeout if a message can be removed from the message queue immediately. http://pubs.opengroup.org/onlinepubs/009604499/functions/mq_receive.html My reading of this is that timeout error must not be returned when message can be performed immediately. What do you think of it ? Regards, Akira Takeuchi ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list