|
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.
|