All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_pipe does not support POLLHUP on the Linux side
@ 2012-03-23  8:35 Wolfgang Grandegger
  2012-03-23  9:59 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Grandegger @ 2012-03-23  8:35 UTC (permalink / raw)
  To: xenomai-help

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.

Wolfgang.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-26 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.