Modified: trunk/launchd/src/launchd_core_logic.c (23575 => 23576)
--- trunk/launchd/src/launchd_core_logic.c 2008-03-27 21:40:32 UTC (rev 23575)
+++ trunk/launchd/src/launchd_core_logic.c 2008-03-27 21:42:31 UTC (rev 23576)
@@ -4128,7 +4128,7 @@
* We definitely need to revisit this after Leopard ships. Please see
* launchctl.c for the other half of this hack.
*/
- if (unlikely(j->mgr->global_on_demand_cnt > 0 && is_not_kextd)) {
+ if (unlikely((j->mgr->shutting_down || j->mgr->global_on_demand_cnt > 0) && is_not_kextd)) {
return false;
}