[launchd-dev] An agent with Keep-Alive set to true (in this agent's plist)

Quinn "The Eskimo!" eskimo1 at apple.com
Mon Jun 13 14:10:47 PDT 2011


On 10 Jun 2011, at 01:54, Nick wrote:

> But what differs an application from a command line application? How launchd realizes it's an application?

It's not launchd that realises that it's an app, it's loginwindow.  When you attempt to log out (which the initial step in restart and shutdown), loginwindow asks each of the app's to quit cleanly.  If an app can't quit, loginwindow prevents the log out.  You need to get your app out of that path, and the best way to do that is to prevent loginwindow from seeing your agent as a GUI app.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware




More information about the launchd-dev mailing list