public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
To: Peng Haitao <penght@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] mq_timedreceive: 10-2.c: check timeout error rather than invalid parameter error
Date: Thu, 22 Mar 2012 18:36:40 +0900	[thread overview]
Message-ID: <20120322183640.ABAE.38390934@jp.panasonic.com> (raw)
In-Reply-To: <4F6AE07A.4050509@cn.fujitsu.com>

Thank you for replying.

On Thu, 22 Mar 2012 16:19:06 +0800
Peng Haitao <penght@cn.fujitsu.com> 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

  reply	other threads:[~2012-03-22  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22  4:23 [LTP] [PATCH] mq_timedreceive: 10-2.c: check timeout error rather than invalid parameter error Akira Takeuchi
2012-03-22  8:19 ` Peng Haitao
2012-03-22  9:36   ` Akira Takeuchi [this message]
2012-03-22 10:16     ` Peng Haitao
2012-03-22 13:06 ` Wanlong Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120322183640.ABAE.38390934@jp.panasonic.com \
    --to=takeuchi.akr@jp.panasonic.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=penght@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox