basic C question

Henry Spencer henry-lqW1N6Cllo0sV2N9l4h3zg at public.gmane.org
Tue Jul 13 17:11:54 UTC 2004


On Tue, 13 Jul 2004, Bob Findlay wrote:
> Unfortunately,  when you open a fifo O_RDONLY and the other end isn't yet 
> opened for writing the open() call blocks.      This little tidbit makes a 
> mess of any select() logic one wants to initialize around that file 
> descriptor.

I believe you can get around that with O_RDONLY|O_NONBLOCK, although I can't
say I've tried it lately...  See the fifo(4) manpage.

                                                          Henry Spencer
                                                       henry-lqW1N6Cllo0sV2N9l4h3zg at public.gmane.org

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list