Re: AuthorizationExecuteWithPrivileges & Foundation & Termination
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