suggestion on a complicated inter-process communication

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Apr 29 05:14:05 CEST 2009

In message <95ac6b26-46f2-4b28-b9a3-3aa02b754357 at>, Way wrote:

> -> denotes create
> MainProcess -> Process1 -> Process3 (from os.system)
>                    |
>                     -> Process2 (from os.system) -> Process4 (from os.system) ->Process5

If MainProcess were to create two pairs of pipes with os.pipe, will they
successfully be passed down to all the child processes? If so, set the input
end of one pair so Process1 will read from it, and the output end of the
other pair so Process3 will write to it. Process5, which presumably is under
your control, can write to the output end of the first pair, and read from
the input end of the second pair.

More information about the Python-list mailing list