delovski
Joined: 14 Jun 2006 Posts: 3523 Location: Zagreb
|
Posted: Fri Jan 01, 2016 8:50 pm Post subject: IPC |
|
|
so - 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 fire
indefinitely." |
|