Re: Re: pid vs. Process Serial Number
Re: Re: pid vs. Process Serial Number
- Subject: Re: Re: pid vs. Process Serial Number
- From: "Tom Harrington" <email@hidden>
- Date: Thu, 21 Sep 2006 15:44:41 -0600
On 9/21/06, Tommy Nordgren <email@hidden> wrote:
I don't think BSD subsystem apps have Process Serial Numbers.
Try getting the parent process ID and check it against a pipe connected
to the ps command line app.
This will work, and will be reasonably efficient, since the check
only needs
to be done at startup.
Even better would be to use the open-source AGProcess class. Get an
AGProcess for the current process, and look up the parent's AGProcess
and command. Should be a lot easier than parsing ps, while also being
rather more reasonably sane.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden