Hi,
i want to get process id of the parent of some process whose pid is known.
whats the c function for this. getppid() gives parent pid of current process only. Is there any way to get ancestor id.
Please help!!! Thanx in advance.
I can get ppid of any process using "ps -el | grep pid" but i want c function.