Projects
Browse Source     Search     Timeline     Wiki

Changeset 23374

Show
Ignore:
Timestamp:
09/12/07 17:24:54 (15 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5477111> 'ssh localhost sudo launchctl' kills machine

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_core_logic.c

    r23372 r23374  
    455455static bool did_first_per_user_launchd_BootCache_hack; 
    456456static jobmgr_t background_jobmgr; 
     457static job_t workaround_5477111; 
    457458static mach_timebase_info_data_t tbi; 
    458459 
     
    18591860job_mig_destructor(job_t j) 
    18601861{ 
    1861         if (j && j->unload_at_mig_return) { 
     1862        /* 
     1863         * 5477111 
     1864         * 
     1865         * 'j' can be invalid at this point. We should fix this up after Leopard ships. 
     1866         */ 
     1867 
     1868        if (j && j != workaround_5477111 && j->unload_at_mig_return) { 
    18621869                job_log(j, LOG_NOTICE, "Unloading PID %u at MIG return.", j->p); 
    18631870                job_remove(j); 
    18641871        } 
     1872 
     1873        workaround_5477111 = NULL; 
    18651874 
    18661875        calendarinterval_sanity_check(); 
     
    59695978        jm->jm_port = 0; 
    59705979 
     5980        workaround_5477111 = j; 
     5981 
    59715982        jobmgr_shutdown(jm); 
    59725983