in reply to Forking problem UPDATED

What do you have so far?

It sounds as though you need to fork twice. The parent and two children would each serve the inputs to one of your systems.