Re: [Xenomai-help] Blocking reads from pipes

2005-11-18 Thread Ignacio García Pérez
Exactly, I have just found out that and posted actually a long mail just before getting this mail from you :o) Yep, and before getting blocked, read() increments the counter as well, that's why we don't have a xnpipe_realease() called as a result of close(). So everything is correct. Fine.

[Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Ignacio García Pérez
Hi, My application consists of a real time module and a non-realtime user mode program. They communicate through several pipes. The user mode program creates a thread (pthread) that opens a pipe and blocks in a read call, waiting for data. Under certain conditions, the user mode program must do

Re: [Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Ignacio García Pérez
As a conclusion, the behaviour that you observed with Xenomai pipes seems consistent with that of Linux' named pipes, except that in Linux read() returns 0, and not an error code as you observed with Xenomai. The read() call does *not* return when you close the *same* file handle from

Re: [Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Gilles Chanteperdrix
Dmitry Adamushko wrote: As a conclusion, the behaviour that you observed with Xenomai pipes seems consistent with that of Linux' named pipes, except that in Linux read() returns 0, and not an error code as you observed with Xenomai. The read() call does *not* return

Re: [Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Dmitry Adamushko
On Thursday 17 November 2005 18:24, Gilles Chanteperdrix wrote: Dmitry Adamushko wrote: As a conclusion, the behaviour that you observed with Xenomai pipes seems consistent with that of Linux' named pipes, except that in Linux read() returns 0, and not an error code as you

Re: [Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Gilles Chanteperdrix
Dmitry Adamushko wrote: On Thursday 17 November 2005 18:24, Gilles Chanteperdrix wrote: Dmitry Adamushko wrote: As a conclusion, the behaviour that you observed with Xenomai pipes seems consistent with that of Linux' named pipes, except that in Linux read() returns 0, and

Re: [Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Dmitry Adamushko
On Thursday 17 November 2005 18:24, Gilles Chanteperdrix wrote: Dmitry Adamushko wrote: As a conclusion, the behaviour that you observed with Xenomai pipes seems consistent with that of Linux' named pipes, except that in Linux read() returns 0, and not an error code as you

Re: [Xenomai-help] Blocking reads from pipes

2005-11-17 Thread Dmitry Adamushko
On Thursday 17 November 2005 20:17, you wrote: Dmitry Adamushko wrote: On Thursday 17 November 2005 18:24, Gilles Chanteperdrix wrote: Dmitry Adamushko wrote: As a conclusion, the behaviour that you observed with Xenomai pipes seems consistent with that of Linux' named pipes,