linux-il  

getting another process id from within a c/cpp program?

Dvir Volk
Wed, 05 Sep 2007 04:11:27 -0700

hi
i want to get another process' pid(s) from withing a program by process
name, without executing a ps or pidof command.
Is there another way of doing this other than iterating over /proc and
reading all the process names?

thanks,