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 an orderly exit, and thus I need a way to unblock that thread. I've done that in the past with sockets. If you have one thread blocked reading from a socket handle, and you close it from another thread, the read call will immediately return with an error code. However, that doesn't seem to work with xenomai pipes. One posix thread blocked reading from a pipe (using posix open/read) won't unblock when you close the file handle from another thread. Any suggestions? Thanks. Nacho.