in the parent's thread of execution, fork() will return the PID of the child process.
start1.cpp: ... int pid = fork(); if (pid == 0) execve("child1", argv, envp); else { // pid == PID of child1 ... } ... -- christopher On Friday 15 November 2002 06:09 am, Zoltan Szabo wrote: > Hi > > I have a little problem. > If I have two C programs: > start1 > child1 > > "child1" is started from "start1", how can i get in the starter program the > PID of the child program? -- > __________________________________________________________ > Sign-up for your own FREE Personalized E-mail at Mail.com > http://www.mail.com/?sr=signup > > Single & ready to mingle? lavalife.com: Where singles click. Free to > Search! http://www.lavalife.com/wp.epl?a=2716 -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list