RFC - bootscript error reporting

Kevin P. Fleming kpfleming at linuxfromscratch.org
Thu Jan 29 19:41:49 PST 2004

Bryan Kadzban wrote:

> <quote #3>
>     /*
>      *  O_RDWR
>      *  POSIX.1 leaves this case "undefined" when O_NONBLOCK is set.
>      *  This implementation will NEVER block on a O_RDWR open, since
>      *  the process can at least talk to itself.
>      */
> </quote #3>

Interesting, that does imply (without further investigating) that 
opening for O_RDWR|O_NONBLOCK and then never reading from the FIFO would 
allow you to write to it, although you'd have to keep it open until 
someone else came along to read from it (i.e. you can't shove data into 
it, close it, and then expect that data to be there when you open it 
again later).

More information about the lfs-dev mailing list