Sujet : Re: Are We Back to the "Wars" Now ?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 18. Dec 2024, 02:23:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjt866$20222$3@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Pan/0.161 (Chasiv Yar; )
On Tue, 17 Dec 2024 13:34:30 +0000, Geoff Clare wrote:
With a pipe or FIFO, you just use simple read and write operations and
the system handles all the messy stuff for you. If the pipe reaches
capacity, write blocks until there is room to write some more; if the
pipe becomes empty, read blocks until there is more data available; when
read returns EOF that's the end of the data.
Yup. Furthermore:
* When the last writer closes its end, any remaining read attempts get
EOF.
* When the last reader closes its end, any remaining write attempts get
“broken pipe”.