Hi, On Fri, Jul 15, 2005 at 12:48:32PM +0200, Richard Metzger wrote: > Please, what is the design here? Shouldn't the child block the pipe, > so that the parent only returns from read(), when the child wants it > to?
Parent: create pipe, fork, close writing side of pipe, wait for data
from reading side of pipe
Child: close reading side of pipe, send data to writing side, when
finished close writing side
Parent: when writing side is closed by child, close also reading side
Bye,
Henning
