Say I have;
int routine1 (void)
some command; //ppp connection which stays alive
int routine2 (void)
int main (void)
child1 = fork();
I've read the section on signals and returns in my book a million times over, i cant make sense of it!
How would I get routine1 to terminate when all children finish?
To explain a little better: my program connects to gprs via ppp then run the children. routine1 is the gprs connection which i would like terminated once the children processes have completed.
As I said, i can't get my head around it and would like a little enlightenment please.
This solution is pretty urgent!