reliable reads from pipes

stephen.a.rago sar0 at cbnewsl.att.com
Tue Aug 14 03:12:23 AEST 1990


In article <1827 at necisa.ho.necisa.oz>, boyd at necisa.ho.necisa.oz (Boyd Roberts) writes:
> In article <11155 at alice.UUCP> andrew at alice.UUCP (Andrew Hume) writes:
> >
> >	lest anyone start relying on reads returning whatever is in the pipe,
> >9th edition and later unices preserved the size of the writes which can
> >now also exceed the size of the pipe buffer (i think).
> 
> Not to mention the 1 byte write nasty that will take out all your
> stream message buffers.  The stream pipe fills when the write
> side high water mark is hit; which is tunable.

SVR4 won't let someone "take all the stream message buffers" unless
they are running as root.  And it's not message buffers, its general
memory out of the kernel memory pool.

> 
> Those M_DELIM's are neat...
> 

M_DELIM's are old.  In V10 it's a flag in the message header (except for
the message line discipline).  SVR4 also has delimiters, if you want to
use them.

Steve Rago
sar at attunix.att.com



More information about the Comp.unix.questions mailing list