All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] rt_pipe does not support POLLHUP on the Linux side
Date: Mon, 26 Mar 2012 22:27:51 +0200	[thread overview]
Message-ID: <4F70D147.8020302@domain.hid> (raw)
In-Reply-To: <4F7038FF.3050203@domain.hid>

On 03/26/2012 11:38 AM, Wolfgang Grandegger wrote:
> Hi Gilles,
> 
> On 03/23/2012 02:14 PM, Gilles Chanteperdrix wrote:
>> On 03/23/2012 10:59 AM, Gilles Chanteperdrix wrote:
>>> On 03/23/2012 09:35 AM, Wolfgang Grandegger wrote:
>>>> Hello,
>>>>
>>>> while playing with rt_pipe, I realized that a select()/poll() function
>>>> does not unblock when the rt_pipe is deleted (via rt_pipe_delete) on the
>>>> other end. I think this is because the poll callback does not support
>>>> POLLHUP:
>>>>
>>>> http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/nucleus/pipe.c#1024
>>>>
>>>> Is this by purpose? At least a blocking read() works as expected. It
>>>> does unblock and return 0 in that case.
>>>
>>> rt_pipes are deprecated, we are not going to add new features to them
>>> now. Please do not use them for new developments. We now have socket
>>> based RTIPCs. See examples/rtdm/profiles/ipc.
> 
> Ah, I was not aware of that. This solution does also work for any skin
> (and does not require to misuse the native skin any more).
> 
>> On the other hand, if you have a small patch to fix this, I will not
>> hurt anyone to merge it.
> 
> OK. See patch below.

Merged, thanks.

-- 
                                                                Gilles.


      parent reply	other threads:[~2012-03-26 20:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23  8:35 [Xenomai-help] rt_pipe does not support POLLHUP on the Linux side Wolfgang Grandegger
2012-03-23  9:59 ` Gilles Chanteperdrix
2012-03-23 13:14   ` Gilles Chanteperdrix
2012-03-26  9:38     ` Wolfgang Grandegger
2012-03-26  9:48       ` Wolfgang Grandegger
2012-03-26  9:53         ` Gilles Chanteperdrix
2012-03-26 10:20           ` Wolfgang Grandegger
2012-03-26 20:27       ` Gilles Chanteperdrix [this message]

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=4F70D147.8020302@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=wg@domain.hid \
    --cc=xenomai@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.