[launchd-changes] [23879] trunk/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 2 15:41:11 PDT 2009


Revision: 23879
          http://trac.macosforge.org/projects/launchd/changeset/23879
Author:   dsorresso at apple.com
Date:     2009-04-02 15:41:10 -0700 (Thu, 02 Apr 2009)
Log Message:
-----------
<rdar://problem/6746891> Launchd defers loading the per-user launchd for root. This may cause first bootstrap to fail.

Modified Paths:
--------------
    trunk/launchd/src/launchd_core_logic.c

Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c	2009-04-01 00:24:58 UTC (rev 23878)
+++ trunk/launchd/src/launchd_core_logic.c	2009-04-02 22:41:10 UTC (rev 23879)
@@ -5801,7 +5801,7 @@
 	snprintf(thelabel, sizeof(thelabel), "com.apple.launchctl.%s", session_type);
 	bootstrapper = job_new(jm, thelabel, NULL, bootstrap_tool);
 	
-	if (jobmgr_assumes(jm, bootstrapper != NULL) && (jm->parentmgr || getuid())) {
+	if( jobmgr_assumes(jm, bootstrapper != NULL) && (jm->parentmgr || !pid1_magic) ) {
 		bootstrapper->is_bootstrapper = true;
 		char buf[100];
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090402/24bec342/attachment.html>


More information about the launchd-changes mailing list