Changeset 23585
- Timestamp:
- 2008-04-02 13:18:49 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/SULeopard/launchd/src/launchd_core_logic.c
r23575 r23585 3885 3885 job_log(j, LOG_DEBUG, "Exited while removal was pending."); 3886 3886 return true; 3887 } else if (j->mgr->shutting_down && j->mgr->hopefully_first_cnt == 0) {3887 } else if (j->mgr->shutting_down && (j->hopefully_exits_first || j->mgr->hopefully_first_cnt == 0)) { 3888 3888 job_log(j, LOG_DEBUG, "Exited while shutdown in progress. Processes remaining: %lu/%lu", total_children, total_anon_children); 3889 3889 return true; … … 3911 3911 bool good_exit = (WIFEXITED(j->last_exit_status) && WEXITSTATUS(j->last_exit_status) == 0); 3912 3912 3913 if (j->mgr->shutting_down) { 3914 return false; 3915 } 3916 3913 3917 /* 3914 3918 * 5066316 … … 3917 3921 * launchctl.c for the other half of this hack. 3918 3922 */ 3919 if ( (j->mgr->shutting_down || j->mgr->global_on_demand_cnt > 0)&& strcmp(j->label, "com.apple.kextd") != 0) {3923 if (j->mgr->global_on_demand_cnt > 0 && strcmp(j->label, "com.apple.kextd") != 0) { 3920 3924 return false; 3921 3925 }

