Re: Non-blocking write to FIFO

2006-10-23 Thread Peter Daum
... in the meantime, I discovered a solution, so let me answer my own question in case somebody else stumbles on this. Peter Daum wrote: > I am trying to figure out a way to write data to a fifo without > knowing whether there is a reader available and without ever blocking. > What I'd like is som

Re: Non-blocking write to FIFO

2006-10-23 Thread Tom Phoenix
On 10/23/06, Peter Daum <[EMAIL PROTECTED]> wrote: I am trying to figure out a way to write data to a fifo without knowing whether there is a reader available and without ever blocking. Although you could use the four-arg select() to detect ready-to-write, there's no way to avoid filling the b

Re: Non-blocking write to FIFO

2006-10-23 Thread Jeff Pang
>Unfortunately, the open fails unless there is somebody reading from >the fifo- It is possible to open a fifo for read without blocking, but >I couldn't find any way to do this for writing. For reading, it also >seems to be possible to ge a signal if data is available, but I can't >think of any wa