• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: pid vs. Process Serial Number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >pid vs. Process Serial Number (From: Brad Peterson <email@hidden>)
 >Re: pid vs. Process Serial Number (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: Right-click not working to trigger menu in NSStatusItem
  • Next by Date: NSPredicate documentation out of sync or is it my system?
  • Previous by thread: Re: pid vs. Process Serial Number
  • Next by thread: CFZombieLevel
  • Index(es):
    • Date
    • Thread