Re: Use of hdiutil in a launchdaemon?
Re: Use of hdiutil in a launchdaemon?
- Subject: Re: Use of hdiutil in a launchdaemon?
- From: Damien Sorresso <email@hidden>
- Date: Fri, 08 May 2009 16:53:44 -0700
On May 8, 2009, at 3:11 PM, Nathan Herring wrote:
I have a script that builds, places files in correct places, and am
trying to add a call to hdiutil to build a compressed disk image
from the placed files. This works swimmingly at the command line,
either in a login window session, or an ssh session. However, it
hangs (or blocks on some nebulous, never-to-be-entered input) when
it's run ultimately from a LaunchDaemon run from /Library/
LaunchDaemons running as me.
Is there something (well known) I need to do specifically to fix
this? And or some better way to diagnose what's going on here?
Nathan,
You appear to be laboring under the assumption that changing your UID
is sufficient to run as your user. This is not true on our platform.
When running from a daemon, hdiutil is in a different bootstrap than
running at a loginwindow or GUI session and thus has different
capabilities. You should be running as an agent to be truly running in
your user's context.
--
Damien Sorresso
BSD Engineering
Apple Inc.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden