How do I perform a non-blocking fopen on a named pipe (mkfifo)?
You could open() your pipe O_RDONLY | O_NONBLOCK, and if you want the C stream, you can get it with fdopen(). However, there might be a problem with the select() – AFAIK, a pipe fd open for reading that has no writer is always prepared for reading, and read() returns 0, so the select() would … Read more