in reply to Malfunctioning select() call on a FIFO

You might find IPC3 buffer limit problem interesting for sucking pipes instead of flushing

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re: Malfunctioning select() call on a FIFO

Replies are listed 'Best First'.
Re^2: Malfunctioning select() call on a FIFO
by Anonymous Monk on Jun 23, 2010 at 17:00 UTC

    Instead of :
    sysopen (FIFO, $icbmfifo, O_RDONLY|O_NONBLOCK);
    We use:

    sysopen (nullFile, $icbmfifo, O_RDONLY|O_NONBLOCK);<br/> sysopen (writeFile, $icbmfifo, O_WRONLY|O_NONBLOCK);<br/> sysopen (FIFO, $icbmfifo, O_RDONLY);<br/> close(nullFile);


    This makes the program wait for data on the FIFO.