• 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: authorization services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: authorization services


  • Subject: Re: authorization services
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 15 Sep 2009 12:37:24 -0700

Mark Thomas wrote:

I notice from the NSLog's outputs that this code doesn't seem to be waiting for that launched tool to finish, as I have also put some NSLogs within the tool itself, as I do not see NSLog's timestamps match up, as I would expect to see the timestamp of the above 'tool has finished' to be the last in console log, however I see timestamps after the 'wait' has returned.

Am I missing something here ?

wait() only works if there's a direct child process. Other relationships (e.g. grandparentage) don't count.


I recommend that your privileged tool log its getppid() value and you manually compare to the getpid() value of the initiating process. You should also log getpgid() of the privileged process.

Or use the 'ps' command to examine the process and process-group relationships.

You should also read the man page for wait(2) and note the variants waitpid, wait3, wait4.

  -- GG
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: wait until the button releases
  • Next by Date: Re: Drawing a graph & testing ranges
  • Previous by thread: Re: authorization services
  • Next by thread: Re: authorization services
  • Index(es):
    • Date
    • Thread