On Sep 14, 2009, at 1:57 PM, Mark Thomas wrote:

I was wondering if anybody could tell me if it's correct to use authorizationExecuteWithPrivileges and wait() calls together, so the parent process wait's until that new child process finishes. Googling seems to imply this from the examples I've seen.

Correct. Well, you could not call wait(), but then you'll just wind up with a zombie task waiting for the parent to reap it or exit, which could confuse some people.

However reading the documentation (within XCode) the authorizationExecuteWithPrivileges, doesn't mention that the privileged process is actually a child of the process which executed this ?

AEWP() actually does do a fork()/exec() internally; see <http://www.opensource.apple.com/source/libsecurity_authorization/libsecurity_authorization-36329/lib/trampolineClient.cpp > for details.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to