[sane-devel] Stuck somehow in porting to Win98/ASPI
Henning Meier-Geinitz
henning at meier-geinitz.de
Fri Jul 15 18:36:55 UTC 2005
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
More information about the sane-devel
mailing list