The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



Thread: fork() help
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-06-2007
blowtorch's Avatar
blowtorch blowtorch is offline
Supporter
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,332
This looks like homework. Is it? Why don't you just write code that forks once and where the parent prints that it is the parent and the child prints that it is the child? This will get you the code that you need to figure out which is a parent process and which is a child. Then you can use this code to run fork in the child process.
Reply With Quote