are you using fork() and execve()? if so, fork() returns the PID of the child in the parent's thread of execution and zero in the child's thread of execution.
wow, i can't believe i remembered that stuff... -- christopher On Friday 15 November 2002 06:08 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