Projects
Browse Source     Search     Timeline     Wiki

Changeset 23586

Show
Ignore:
Timestamp:
2008-04-02 13:22:03 (6 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
  • trunk/launchd/src/launchd_core_logic.c

    r23584 r23586  
    41764176                job_log(j, LOG_DEBUG, "Exited while removal was pending."); 
    41774177                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)) { 
    41794179                job_log(j, LOG_DEBUG, "Exited while shutdown in progress. Processes remaining: %lu/%lu", total_children, total_anon_children); 
    41804180                return true; 
     
    42034203        bool is_not_kextd = (do_apple_internal_logging || (strcmp(j->label, "com.apple.kextd") != 0)); 
    42044204 
     4205        if (unlikely(j->mgr->shutting_down)) { 
     4206                return false; 
     4207        } 
     4208 
    42054209        /* 
    42064210         * 5066316 
     
    42094213         * launchctl.c for the other half of this hack. 
    42104214         */ 
    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)) { 
    42124216                return false; 
    42134217        }