• 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: AuthorizationExecuteWithPrivileges & Foundation & Termination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AuthorizationExecuteWithPrivileges & Foundation & Termination


  • Subject: Re: AuthorizationExecuteWithPrivileges & Foundation & Termination
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 8 Sep 2001 09:31:47 +0100

On Saturday, September 8, 2001, at 04:22 am, Kim Foo-Jones wrote:

Also, how can I stop the task when the user wants to stop capturing? AuthorizationExecuteWithPrivileges() doesn't seem to provide any way of getting any information about the task/process/whatever it spawns...

You can't, and this is very annoying. You'll have to do something like create a wrapper application which fork()s, passes the child's pid back up to the calling application (via printf or whatever), and then terminates. You can then call wait() from your calling application to get rid of zombie processes.

-- Finlay


References: 
 >AuthorizationExecuteWithPrivileges & Foundation & Termination (From: Kim Foo-Jones <email@hidden>)

  • Prev by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Previous by thread: AuthorizationExecuteWithPrivileges & Foundation & Termination
  • Next by thread: Re: cocoa-dev digest, Vol 1 #541 - 16 msgs
  • Index(es):
    • Date
    • Thread