[TAG] Help please :(

Cenk Yusuf Ustabas cenk_ustabas at yahoo.com
Wed Mar 7 00:49:23 MSK 2007


First of all I can't find a link about fork(1).I will write a program which is like that:

Parent produce some numbers and it will create child and this child read these numbers and this child will create another child and this child will read these numbers it will continue like that until loop will end but last child doesnt create any child.Then at the end all these process will end.I guess this is clear now.I know how to create a child but I don't know how this child create another child... it will goes like that.I'm thinking something for example: after pid=fork(); for one child we can do our process in separate parts child and parent then both of them will end by one by.But How will I create other child?  

case -1:
    error no child
case 0: (this is child part)

    do I create other child in this part?

default: (parent) 


Thank you.


 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxgazette.net/mailman/private/tag/attachments/20070306/e37ef6af/attachment.htm 



More information about the TAG mailing list