Changeset 23586
- Timestamp:
- 2008-04-02 13:22:03 (6 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23584 r23586 4176 4176 job_log(j, LOG_DEBUG, "Exited while removal was pending."); 4177 4177 return true; 4178 } else if (j->mgr->shutting_down && j->mgr->hopefully_first_cnt == 0) {4178 } else if (j->mgr->shutting_down && (j->hopefully_exits_first || j->mgr->hopefully_first_cnt == 0)) { 4179 4179 job_log(j, LOG_DEBUG, "Exited while shutdown in progress. Processes remaining: %lu/%lu", total_children, total_anon_children); 4180 4180 return true; … … 4203 4203 bool is_not_kextd = (do_apple_internal_logging || (strcmp(j->label, "com.apple.kextd") != 0)); 4204 4204 4205 if (unlikely(j->mgr->shutting_down)) { 4206 return false; 4207 } 4208 4205 4209 /* 4206 4210 * 5066316 … … 4209 4213 * launchctl.c for the other half of this hack. 4210 4214 */ 4211 if (unlikely((j->mgr-> shutting_down || j->mgr->global_on_demand_cnt > 0) && is_not_kextd)) {4215 if (unlikely((j->mgr->global_on_demand_cnt > 0) && is_not_kextd)) { 4212 4216 return false; 4213 4217 }

