Projects
Browse Source     Search     Timeline     Wiki

Changeset 23585

Show
Ignore:
Timestamp:
04/02/08 13:18:49 (8 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5835375> 10.5.3 Regression: Failure to shutdown in 9D11 with zombie shutdown

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/SULeopard/launchd/src/launchd_core_logic.c

    r23575 r23585  
    38853885                job_log(j, LOG_DEBUG, "Exited while removal was pending."); 
    38863886                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)) { 
    38883888                job_log(j, LOG_DEBUG, "Exited while shutdown in progress. Processes remaining: %lu/%lu", total_children, total_anon_children); 
    38893889                return true; 
     
    39113911        bool good_exit = (WIFEXITED(j->last_exit_status) && WEXITSTATUS(j->last_exit_status) == 0); 
    39123912 
     3913        if (j->mgr->shutting_down) { 
     3914                return false; 
     3915        } 
     3916 
    39133917        /* 
    39143918         * 5066316 
     
    39173921         * launchctl.c for the other half of this hack. 
    39183922         */ 
    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) { 
    39203924                return false; 
    39213925        }