The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 04-07-2008
ramen_noodle ramen_noodle is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 251
Thanks for the assist Era.
All that can be returned from a child is it's pid without ipc.
That's all my example does. Remember that at fork the parents address space is copied into the child. Afterwards no assignments are shared.
The exception is vfork. There are some ugly hacks that can accomplish what you need using this. You may want to consider threads instead. It sounds like what you have in mind.

Traditionally in a process (ipc) paradigm: Pipes are simple and clean.
Everything else is going to take time to get used to.