On Tue, 17 Sep 2002, Takashi Iwai wrote: > > but are you sure that this feature is really implemented? > on my system, write() to an FIFO which is not opened for read doesn't > fail, for example, > % mkfifo /tmp/foo > % cat /dev/random > /tmp/foo > and cat is blocked, not failed.
No, in this case open() blocks. cat is even not started, because the shell waits for open(). If you open /tmp/foo for reading, then open() suceeds, cat starts and may write. If you close the other end, the next write() from cat will return -1. Best regards, -- Tomasz Motylewski P.S. ALSA has more possible states of fd than pipes which may be just open/closed by the other side, and eventually full. This makes direct comparision difficult. ------------------------------------------------------- Sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel