Changeset 23525
- Timestamp:
- 2008-02-26 13:39:33 (8 months ago)
- Location:
- trunk/launchd/src
- Files:
-
- 2 modified
-
launchctl.c (modified) (5 diffs)
-
launchd_core_logic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchctl.c
r23517 r23525 153 153 static bool job_disabled_logic(launch_data_t obj); 154 154 static void fix_bogus_file_metadata(void); 155 static void do_file_init(void) __attribute__((constructor)); 155 156 156 157 typedef enum { … … 221 222 static bool verbose; 222 223 static bool is_managed; 224 static bool do_apple_internal_magic; 223 225 224 226 int … … 1482 1484 assumes(load_and_unload_cmd(4, load_launchd_items) == 0); 1483 1485 1484 #ifdef __ppc__1485 1486 /* 1486 1487 * 5066316 … … 1525 1526 * 1526 1527 */ 1527 mach_timespec_t w = { 5, 0 }; 1528 IOKitWaitQuiet(kIOMasterPortDefault, &w); 1529 #endif 1528 if (!do_apple_internal_magic) { 1529 mach_timespec_t w = { 5, 0 }; 1530 IOKitWaitQuiet(kIOMasterPortDefault, &w); 1531 } 1530 1532 1531 1533 do_BootCache_magic(BOOTCACHE_TAG); … … 3183 3185 } 3184 3186 } 3187 3188 void 3189 do_file_init(void) 3190 { 3191 struct stat sb; 3192 3193 if (stat("/AppleInternal", &sb) == 0) { 3194 do_apple_internal_magic = true; 3195 } 3196 } -
trunk/launchd/src/launchd_core_logic.c
r23519 r23525 4029 4029 struct stat sb; 4030 4030 bool good_exit = (WIFEXITED(j->last_exit_status) && WEXITSTATUS(j->last_exit_status) == 0); 4031 4032 #ifdef __ppc__ 4031 bool is_not_kextd = (do_apple_internal_logging || (strcmp(j->label, "com.apple.kextd") != 0)); 4032 4033 4033 /* 4034 4034 * 5066316 … … 4037 4037 * launchctl.c for the other half of this hack. 4038 4038 */ 4039 if (unlikely(j->mgr->global_on_demand_cnt > 0 && strcmp(j->label, "com.apple.kextd") != 0)) {4039 if (unlikely(j->mgr->global_on_demand_cnt > 0 && is_not_kextd)) { 4040 4040 return false; 4041 4041 } 4042 #else4043 if (unlikely(j->mgr->global_on_demand_cnt > 0)) {4044 return false;4045 }4046 #endif4047 4042 4048 4043 if (j->start_pending) {

