[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Finding ppid



On Thursday 27 August 2009, Jo Even Skarstein wrote:
> --------------------------------------------------
> From: "Konrad Kokoszkiewicz" <draco@ibi.uw.edu.pl>
> Sent: Thursday, August 27, 2009 3:34 PM
> To: "Jo Even Skarstein" <joska@online.no>
> Cc: "[MiNT] Mailing-List" <mint@fishpool.com>
> Subject: Re: [MiNT] Finding ppid
>
> >> What is the "right" way of finding the ppid of a process? Right
> >> now I'm parsing
> >> /kern/<pid>/status, but I guess there must be a better way of
> >> doing it.
> >
> > Getppid() ?
>
> I should have been more precise. I need to find the ppid of ANY
> process, not just the calling process.

How about appl_search()?

Cheers,
JFL
-- 
Jean-François Lemaire