Projects
Browse Source     Search     Timeline     Wiki

Changeset 23391

Show
Ignore:
Timestamp:
09/14/07 17:22:39 (15 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5483598> Survive PID death during session migration

Files:
1 modified

Legend:

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

    r23389 r23391  
    59165916                j_for_service = jobmgr_find_by_pid(jmr, target_pid, true); 
    59175917 
    5918                 if (!jobmgr_assumes(jmr, j_for_service != NULL)) { 
    5919                         kr = BOOTSTRAP_NO_MEMORY; 
    5920                         goto out; 
     5918                if (!j_for_service) { 
     5919                        /* The PID probably exited */ 
     5920                        job_assumes(j, launchd_mport_deallocate(l2l_ports[l2l_i]) == KERN_SUCCESS); 
     5921                        continue; 
    59215922                } 
    59225923