Changeset 23397
- Timestamp:
- 09/17/07 14:58:35 (15 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23396 r23397 453 453 static mach_port_t the_exception_server; 454 454 static bool did_first_per_user_launchd_BootCache_hack; 455 #define JOB_BOOTCACHE_HACK_CHECK(j) (j->per_user && !did_first_per_user_launchd_BootCache_hack && (j->mach_uid >= 500) && (j->mach_uid != (uid_t)-2)) 455 456 static jobmgr_t background_jobmgr; 456 457 static job_t workaround_5477111; … … 460 461 mach_port_t inherited_bootstrap_port; 461 462 jobmgr_t root_jobmgr; 463 462 464 463 465 void … … 2451 2453 LIST_INSERT_HEAD(&j->mgr->active_jobs[ACTIVE_JOB_HASH(c)], j, pid_hash_sle); 2452 2454 2453 if ( j->per_user && !did_first_per_user_launchd_BootCache_hack) {2455 if (JOB_BOOTCACHE_HACK_CHECK(j)) { 2454 2456 did_first_per_user_launchd_BootCache_hack = true; 2455 2457 } … … 2513 2515 int i; 2514 2516 2515 if ( j->per_user && !did_first_per_user_launchd_BootCache_hack) {2517 if (JOB_BOOTCACHE_HACK_CHECK(j)) { 2516 2518 do_first_per_user_launchd_hack(); 2517 2519 }

