Revision: 23879 http://trac.macosforge.org/projects/launchd/changeset/23879 Author: dsorresso@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];
participants (1)
-
source_changes@macosforge.org