Re: [LIP] How to get the parent PID.
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
Sandeep posted in linux-india-programmers:
> > 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.
Huh? getppid is prototyped as:
pid_t getppid(void);
Would you care to explain how it can be used to get the PPID of any process?
Binand
--
Hanlon's Razor: Never attribute to malice that which can be adequately
explained by stupidity.
Bruce's Razor: Never attribute to stupidity that which can be adequately
explained by Microsoft funding.
-------------------------------------------------------
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