Re: [LIP] How to get the parent PID.

"Sandeep" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
----- Original Message -----
From: Logu <[email protected]>
To: <linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Tuesday, May 03, 2005 11:02 AM
Subject: [LIP] How to get the parent PID.


> Hi,
>
> Given a PID, how to get the parent PID of it. Is there any library/system
> call available for this.

You can use getppid(pid) system call to do this.

sandeep



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.